Skip to content

JCB layout maybe bug #647

Answered by Llewellynvdm
saman222 asked this question in Q&A
Jan 11, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

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:

<…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@saman222
Comment options

@Llewellynvdm
Comment options

Answer selected by Llewellynvdm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants