10 years ago
4
Topic
Hi guys,

I had a weird problem and as I was typing.. i fixed it. However, I'm going to post it to share.

So.. I've been overriding the article and blog item layouts with a customized template (with the "html" subfolders of the template). Originally, the "$item->text" property was being outputted, but I wasn't satisfied with that because "$item->introtext" and "$item->fulltext" were put together in the "$item->text" property.

So I decided to "echo" both "introtext" and "fulltext" separately to enclose them in separate "divs" ...and that was the mistake. The Seblod magic (parsing) completely stopped functioning. After searching, I found out that the content plugin relies on the "$item->text" property. It doesn't parse the "introtext" or "fulltext" at all !

The solution for me was to remove my overrides (in the customized graphical template) and make a Seblod template (for my content type).

Thanks for bringing Seblod to the community.
..just need to learn the tricks.
Get a VIP membership
693 Posts
rpoy
10 years ago
3
Level 1
Hi isometriq,

Thanks for sharing!

Here are some good articles on custom templates in case you haven't seen them.

regards,

Randy
10 years ago
2
Level 2
Thanks, that's exactly what I needed.
10 years ago
1
Level 3
Does all the docs for 2.0 applies for 3.0 ?
693 Posts
rpoy
10 years ago
0
Level 4
Hi isometriq,

Yes, as far as the custom templates go, everything should still work.

Depending on what you are trying to do, you can also use the minima template along with your own div fields.

regards,

Randy
Get a VIP membership