11 years ago
8
Topic

Hello,

In Joomla I can make template overrides for articles.


In my template folder I have 2 files:

template/html/com_content/article/default.php

template/html/com_content/article/twocol.php


In the article admin form I can choose from the dropdown "Alternative Layout" which layout file I want to use.

But it has no effect. If I choose "twocol" from the dropdown, the default.php gets parsed.


In J! without SEBLOD the Alternative Layout is working. But not with SEBLOD.


How can I choose alternative layouts for articles in SEBLOD?


Any hint would be much appreciated.


Cheers

gerhard

Get a Book for SEBLOD
11 years ago
0
Level 1

Hello Gerhard,

The main thing of SEBLOD, it s to build alternative Layouts !

In SEBLOD, there is differents solutions to do that.

If you have build your content type like a Joomla Article, you have 2 views, the intro and the content. On this views you can make your layout with a variation or a position overirde.

After, you have the SEBLOD search. It will allow you to pick what you want from your content type and display it as you want.

Best regards.

11 years ago
6
Level 1

Hello Alex,

thank you for taking a look into this.


I am aware of the position/variation override capabilty of SEBLOD and I make extensive use of that deature in my projects.


The SEBLOD templates kick in where in the Joomla com_content templates we have this line of code:

<?php echo $this->item->text; ?>


My problem described above is about choosing different Joomla templates for articles. I have 2 different templates for Joomla articles:

template/html/com_content/article/default.php

template/html/com_content/article/twocol.php


When editing an article in the backend Content->Article Manager, I have a dropdown field "Alternative Layout".

There I can choose which template to use for that article. In my case "default" or "twocol".


The problem is that, no matter what I choose in that dropdown, always the default layout gets parsed.




11 years ago
5
Level 2

Hello gebeer,

Which main template from framework ( gavick, T3, warp, gantry...) or template( isis...) are you using ?

Thanks

11 years ago
4
Level 3

Hello Alex,

I am using http://internet-inspired.com/labs/oneweb-template which is a really great, clean and fast blank template (based on html5boilerplate) to build upon.

14 Posts
Jack Horner
11 years ago
3
Level 4

Hey was there ever a resolution on this?

11 years ago
2
Level 5

No, not so far.

Can you reproduce the problem?

10 years ago
1
Level 6

Hello gebeer,

was there any solution  to your problem?

Does it happens only for standard joomla articles in Seblod or  when creating standard Seblod articles?

I am asking because i have watched that the system is a little bit unstable when Joomla articles and standard Seblod articles are used in the frontend at the same time

10 years ago
0
Level 7

Hi Yannis,

no solution yet.

This seems to happen for both, standard Joomla and standard Seblod articles.

Somehow they are not aware of the layout setting that you choose.

But I haven't tried this in a while. So maybe it works with latest Seblod version.

Generally I wouldn't mix standard Joomla and standard Seblod articles. Once you have a Seblod enhanced site you should manage everything through seblod content types. Makes life a lot easier :-)

Get a Book for SEBLOD