Scroll to the end for the final solution!
This first part is blocking me from getting further on the second part.
First Part
Steps to Reproduce:
The issue described above is blocking me from further experimentation, but I will continue describing my desired outcome since that may not go as expected either.
(04.jpg) What I'm basically trying to do is insert some code into the cateogy page if the admin wanted to make it a landing page. Landing pages are usually much simpler, so I will use some CSS to hide elements on the page as well as a little Jquery to add and remove classes. The code you see in my content is more of a proof of concept not actual functional code.
Then I plan to find the spot on the category display page where I want that CSS and Jquery to appear and post the following code. (At least, I think. Like I said, haven't been able to get here to fiddle with it.)
This first part is blocking me from getting further on the second part.
First Part
Steps to Reproduce:
- 01.jpg (Custom fields page) - created a custom field
- 02.jpg (A Random Category page) - New custom field is showing up on category page as expected.
- 03.jpg (Category Display Page CTY)
- Expected result: I expected to see my new custom field in this list.
- Actual Result: My new custom field is not showing up as an option to add to this template.
The issue described above is blocking me from further experimentation, but I will continue describing my desired outcome since that may not go as expected either.
(04.jpg) What I'm basically trying to do is insert some code into the cateogy page if the admin wanted to make it a landing page. Landing pages are usually much simpler, so I will use some CSS to hide elements on the page as well as a little Jquery to add and remove classes. The code you see in my content is more of a proof of concept not actual functional code.
Then I plan to find the spot on the category display page where I want that CSS and Jquery to appear and post the following code. (At least, I think. Like I said, haven't been able to get here to fiddle with it.)
Code:
<mvt:item name="customfields" param="Read_Category_Code( l.settings:category:code, ‘isLandingPage’, g. isLandingPage )" /> <mvt:if expr="g. isLandingPage EQ 1"> <mvt:item name="readytheme" param="contentsection( 'isLandingPage' )" /> </mvt:if>
Comment