Problems creating custom templates

Post

Posted
Rating:
#9558 (In Topic #3370)
Avatar
Standard member
RichT is in the usergroup ‘Well-settled’
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

Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by RichT)
#9559
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
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)

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top

Post

Posted
Rating:
Item has a rating of 5 (Liked by Patrick Schmalstig)
#9564
Avatar
Standard member
RichT is in the usergroup ‘Well-settled’
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.
Online now: No Back to the top

Post

Posted
Rating:
#9565
Avatar
Site director
Patrick Schmalstig is in the usergroup ‘Administrators’
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.

  • Need support for version 10? The core development team is no-longer offering it for free (unless it's a critical bug that breaks your entire site or a serious security hole). Please consider hiring me instead if you need v10 support or a non-critical bug fix. Or, ask the community in the forums!
  • Do you enjoy Composr? Please consider contributing your talent to the project or recommending Composr to others. Even small contributions make a big impact in the Composr community.
  • Do you have feedback for us? You can report bugs, suggest features, or give feedback on the Free support options page.
  • Do you need professional service with your Composr website? Please consider contracting me for your needs through my company, PDStig, LLC. Doing so will also help fund Composr development.
  • Want to watch live streams of me developing Composr CMS? Please subscribe to me on Twitch to be notified when I stream. Composr development streams are usually spontaneous / not scheduled in advance as work priorities come first.
Online now: No Back to the top
1 guest and 0 members have just viewed this.

Statistics

Forum statistics:
  • 2,052 topics, 7,195 posts, 10,827 members
  • Our newest member is LowfareMart
Back to Top