Editing PageList Block View

Permalink
This is probably an easy thing for a developer, but developer that setup my Concrete5 site is away for a couple of weeks and I'd like to get this done. I do have some programming (limited to understanding some code, not writing from scratch) knowledge.

Can we make our page list view.php list information from within an <h1> and <h2> tag on the page that it is listing? We will only have one h1 and h2 tag on each page, and we would rather that this information was displayed instead of from the Title and Description information on the page. If somebody could let me know if this is possible, and how to do it, that would be awesome!

Thanks so much in advance for you help.

Cheers,

Shaun

 
jordanlev replied on at Permalink Reply
jordanlev
This is a bit tricky. I did something similar for a blog on one of my sites -- the page list pulls actual content from the page instead of using the description. It could probably be modified to do what you want, but to pull out just a specific <h1> and <h2> tag would require some coding -- you have to parse the html and get those elements out of it.
If you could change your pages so instead of an <h1> and <h2> tag, those pieces of information are in their own block, that would make this task easier.
Anyway, here's a link to a write-up about the blog I made -- scroll down to the "Real Content Excerpts" section:
http://c5cookbook.com/recipes/make_a_blog...
It might be a little advanced for your level of coding experience, but it's worth a shot. If you have any kind of budget for this I'd be happy to talk to you about doing this work for you.

Hope that helps!

-Jordan

FYI, you might get more responses if you post this to the "Building With C5" forum instead of here -- seems like most developers only ready that one.