Problems creating custom templates

Post

Posted
Rating:
#7784 (In Topic #1983)
New Year's Greetings!

I'm currently attempting to provide some dedicated HTML templates for controlling display appropriately within a couple of
custom catalogues (simple variants of the CATALOGUE_DEFAULT template set for my custom theme) and am encountering two hiatuses:
(I'm running version 10.0.43)

1. The theme's list of existing HTML templates is accompanied by an input field for creating a new template. I tried entering an appropriately modified name, but there is no "proceed" or "save" facility for accepting it - only an Edit button which, when clicked, triggers an error page stating *no template was selected" and a global message that the inputted template name doesn't exist.
 2.    Consequently I went about creating and authoring the template in cPanel, in my custom theme's Templates directory. - expecting to find it added to the list of existing HTML templates within Composr. However, it's not showing. Nor does it appear (in place of the default template
when I apply the "Show template-edit links" page rendering tool to applicable category-pages.

Can anybody help me out here, please?






 

Last edit: by RichT

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by RichT)
#7785
Hmm that seems like a bug. Seems to also exist on 10.0.44. Can you add it to the tracker for me? That way, you'll get updates and a hotfix when I or someone else fixes it. Thank you!

In the mean time, you can use any text editor to write your template and then upload it to a templates_custom directory. While the bug prevents it from showing up in the editor, it should still be available for use (e.g. if you make a CATALOGUES template, providing it's done correctly, Composr should start using it)

Post

Posted
Rating:
Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 Item has a rating of 5 (Liked by PDStig)
#7786
Very many thanks for your reply, Patrick!

Your advice as to composing the .tpl file  in a local machine text-editor and having cPanel upload it to its destination directory works perfectly - the template is now displaying on my theme's  Edit Templates page as well as in the Show Templates Edit-links page-rendering tool display, and is directly editable within Composr via either means (and works fine, too). The uploading operation is evidently essential, since creating the .tpl actually within cPanel proved to be a non-starter. 

Since all aspects as regards my reported issue #2 are evidently working properly (using the above method - I've yet to try adding a .tpl file to the file system via ftp or WebDAV) there would appear to be no bug accountable, and hence nothing thereto to add to the tracker. As regards my issue #1, in contrast, the failure of the provision for creating a new template within the Edit Templates page does need  resolving, so I shall report that to the tracker.

Kind regards and my thanks again!
Richard

PS - Incidentally, might I draw your attention here to an entirely different matter? The text of the forum's posts is getting truncated at the right margin of screens when displaying at 100% (and above 80%). The CSS selector accountable is named .cntMainWrapper (in your global.css) and in particular its declaration, overflow: hidden; . Unchecking this in DevTools eliminates the truncating. Would you consider changing the declaration, perhaps? - R.

Post

Posted
Rating:
#7787
Hello,

Yes, the template editor's new template functionality should still be added to the tracker / fixed. But thank you for the update on your situation. I find that weird that you cannot create the files within cPanel. Perhaps it's a webhost restriction.

Regarding the CSS, that's interesting. I believe that's specific to the Composr website and not the CMS itself. I'll take a look. Please add that to the tracker as well, but put that under the "Composr website" project instead.
1 guest and 0 members have recently viewed this.