Search found 5 matches
- Tue Sep 06, 2011 2:36 pm
- Forum: CMSMS Core
- Topic: Relative path to module sub-template?
- Replies: 4
- Views: 1627
Re: Relative path to module sub-template?
OK, I have been thinking. Perhaps the cleanest solution would be to implement each tab as a separate action? Now my main template would look something like this: {$tabs_start} {$tab_start_task1} {MyModule action='admin_task1'} {$tab_end} {$tab_start_task2} {MyModule action='admin_task2'} {$tab_end} ...
- Tue Sep 06, 2011 10:53 am
- Forum: CMSMS Core
- Topic: Relative path to module sub-template?
- Replies: 4
- Views: 1627
Re: Relative path to module sub-template?
I use $this->ProcessTemplate('filename.tpl') in action.defaultadmin.php to process the main template, but I want something to put inside the main template to include the sub-templates. The include-tag seems like a good candidate, only I don't understand how to get the path right.
- Tue Sep 06, 2011 1:10 am
- Forum: CMSMS Core
- Topic: Relative path to module sub-template?
- Replies: 4
- Views: 1627
Relative path to module sub-template?
I am trying to write a module with an admin page. The admin page has three tabs. Instead of cramming all three tabs into one template I was trying to have the main template include each tab as a sub-template, using {include file='sub_template.tpl'}. This did not work. The file could not be found. I ...
- Sat Sep 03, 2011 1:06 pm
- Forum: CMSMS Core
- Topic: [Solved] User defined smarty page elements?
- Replies: 2
- Views: 831
Re: User defined smarty page elements?
Ah, perfect! Exactly what I was looking for.
I also found I can get the GCB programmatically with $smarty->fetch('globalcontent:name') so this will be very useful for me.
Thanks!
I also found I can get the GCB programmatically with $smarty->fetch('globalcontent:name') so this will be very useful for me.
Thanks!
- Fri Sep 02, 2011 1:30 pm
- Forum: CMSMS Core
- Topic: [Solved] User defined smarty page elements?
- Replies: 2
- Views: 831
[Solved] User defined smarty page elements?
I am new to CMSMS so bear with me. Is there something like user defined tags but for smarty content rather than php? I would like the user to be able to define and edit page elements in smarty language and insert them into various pages using tags. Is there a simple way to do this? Could I use the L...