Is there a way to assign a class to just the page title when it is outputed by the NewsListing snippet? What I want to do is have a style class to assign a background image and a CSS border to the title as it sits just above the summary.
eg:
---------------------------------------------------------------------
| Article Name |
---------------------------------------------------------------------
This is the content of the article. Lorem ipsum dollar sign sit onit!
---------------------------------------------------------------------
| Article 2 Name is just as good |
---------------------------------------------------------------------
This is the content of article 2. Isn’t it lovely and insightful?
Any ideas?
-sD-
scotty Delicious
-
MODX Staff
- 12,272 Posts
Super easy to do... but I’ve got to spend some time with the wife... so it’ll have to wait until later this weekend. Good night!
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Just create a new chunk using the proper placeholders (look in the comments part of the snippet) and call it appropriately.
-
MODX Staff
- 12,272 Posts
Look at the demo site content for examples of how to do this.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
☆ A M B ☆
- 24,524 Posts
Take a look at the WebLoginSideBar chunk for a good example of this.
Well, I figured out why I couldn’t get it to work. I was using the single quote ( ’ ) instead of the tick ( ` ) which is next to the 1 key. So... there’s my lesson for the day! Pay attention Scotty!
-sD-