JCB layout maybe bug #647
-
Hi but the problem: if i have multi layout i need to copy all syntax from Layout Code Snippets to "Default Tmpl" textbox and if do this in the site view we see all layouts in one siteview page. out temporary solution: we handle this problem by use // in the item); ?> to put file in the layouts folder but not render in the siteview. we use multi layout because we want user can select each layout to render the siteview. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I am not sure if I understand your problem, but just to be sure we are on the same page, have you watched (forgive me if you did) but have you watched the tutorials about using layouts, and templates in site views? Since being able to add a layout to a site view is very easy, you just add the code link this. For a template: <?php echo $this->loadTemplate('programs'); ?> For a layout: <?php echo JLayoutHelper::render('signup', $values_passed_to_layout); ?> Then JCB will automatically add those templates or layouts to your component. This also means that if you would like a layout in your component, you can with the following convention add it without it rendering, but it still gets added: <?php // JLayoutHelper::render('signup', $values_passed_to_layout); ?> Please let me know what you are trying something beyond this basic implementation, if this does not resolve or answer your question. |
Beta Was this translation helpful? Give feedback.
I am not sure if I understand your problem, but just to be sure we are on the same page, have you watched (forgive me if you did) but have you watched the tutorials about using layouts, and templates in site views?
Since being able to add a layout to a site view is very easy, you just add the code link this.
For a template:
For a layout:
Then JCB will automatically add those templates or layouts to your component. This also means that if you would like a layout in your component, you can with the following convention add it without it rendering, but it still gets added:
<…