Jump to content
thirty bees forum
  • 0

Under TB 1.6.0 creating a new CMS Category show PHP code in the category description in front office instead of just the text...


Question

Posted (edited)

I think I found a bug for the new Thirtybees 1.6.0.

If you create a new CMS Category and fill in the description, the text that will show in the front office will be the PHP "source code" instead of just the text.

If you look for the listings of CMS category created in the Backoffice, you will also see this under the description column as below:

CategoryCMS.thumb.png.c137ee3d0d3a4572f6961aee0d09588f.png

 

Here's what shows up on the front office :

CategoryBlock.png.eeeec73cbab747053c069b458688bda0.png

Can anyone replicate this?

Is this a bug under TB 1.6.0?

Please note that the CMS Categories that were previously created under TB 1.5.1 are displaying correctly, the problem is only with new CMS categories created under TB 1.6.0...

Cheers

 

 

 

Edited by papagino

3 answers to this question

Recommended Posts

  • 0
Posted

Until thirty bees 1.5.0, CMS category description did not allow HTML content. We enhanced this in 1.5.0.

However, old themes do not support this. You have to edit your theme cms.tpl file, and remove escaping. See this commit, how it was done in niara theme:

https://github.com/thirtybees/niara/commit/402af237ecf99c5b9cb49e9316c54b88dd5b5c28

https://github.com/thirtybees/thirtybees/commit/09fcb66221a3ed14008c3476e1cfed1ff3d531d7

So this is not a bug.

However, thanks to you I found different / related bug -- description displayed in the back office CMS category list needs to be striped from tags. I've fixed this, it's in bleeding edge now.

  • 0
Posted
1 hour ago, datakick said:

Until thirty bees 1.5.0, CMS category description did not allow HTML content. We enhanced this in 1.5.0.

However, old themes do not support this. You have to edit your theme cms.tpl file, and remove escaping. See this commit, how it was done in niara theme:

https://github.com/thirtybees/niara/commit/402af237ecf99c5b9cb49e9316c54b88dd5b5c28

https://github.com/thirtybees/thirtybees/commit/09fcb66221a3ed14008c3476e1cfed1ff3d531d7

So this is not a bug.

However, thanks to you I found different / related bug -- description displayed in the back office CMS category list needs to be striped from tags. I've fixed this, it's in bleeding edge now.

Ok, I also noticed that on CMS Categories previously created with TB 1.5.1, when you would create CMS Block for those categories and click on the titles for the blocks, you would get the descriptions then under it would say: List of pages in (The category Names) and under would be listed links for all the CMS pages under those categories.

It doesn't do this anymore, it only shows the description.

Is this a change under TB 1.6?

  • 0
Posted
On 11/9/2024 at 9:13 PM, papagino said:

It doesn't do this anymore, it only shows the description.

Is this a change under TB 1.6?

I don't think so. Core controller still provide list of category pages to template, and niara/community theme displays them correctly.

image.png.f86c4fb456b4a295e44176d839780120.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...