Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 11, 201510 yr Hey guys, for IP Pages, I have set the "articles template" to "category articles" to make my articles look more like a blog format instead of a table.However, this only works for the articles.html page view. When I click on the actual category to view in the articles, it displays as a table. Anyway to get ALL of my categories to display like the "category articles" template which looks like a blog, not a table? Thanks for the help!
February 11, 201510 yr Community Expert Anyway to get ALL of my categories to display like the "category articles" template which looks like a blog, not a table? I’m afraid that is not easily possible. As the setting says, that article mode is meant only for the “Database Index”. To simulate that appearance for all categories, you would need to set up a custom listing template that looks like the article template.
February 11, 201510 yr Author I see and I have been looking at it for hours, but just can't find a way to add the article images into a customer listing template. I am definitely not a php expert by no means but is there no easy way to accomplish this? I tried to simply copy the "Category Articles" template into one of the "Listing" templates but of course this did not work.Do you have to know php code to create these templates? Or is there an easier way?Thanks again for the help.
February 11, 201510 yr Community Expert I tried to simply copy the "Category Articles" template into one of the "Listing" templates but of course this did not work.Yeah, that won’t work. But you should be able to modify the listing templates and reuse the variable keys you find in the article template. So …<img src="{$record->record_image}">in the article template should work in the listing template like so …<img src="{$row->record_image}">
February 11, 201510 yr Author @opentype looks like that did the trick! I will have to do some more modifying, but everything else (like title, author etc) seems to be there.Thanks again for the help on this!By the way, I noticed that it is loading the FULL image...does IP Pages not create a thumbnail for these images? If not, than that's a serious problem in terms of optimization which would be a bummer. Anyway around that?
February 11, 201510 yr Community Expert By the way, I noticed that it is loading the FULL image...does IP Pages not create a thumbnail for these images? If not, than that's a serious problem in terms of optimization which would be a bummer. Anyway around that?I nagged IPS about that problem for some time and they added thumbnail and resize settings in one of the earlier betas. I haven’t checked out how to call the different versions in the template, since I don’t use that stock image field. I just let the system downsample all uploads to a max setting.
February 11, 201510 yr Excuse-me for the unrelated question: What is IP. Pages? (Part of IP. Content?)Thanks.
February 11, 201510 yr Author I nagged IPS about that problem for some time and they added thumbnail and resize settings in one of the earlier betas. I haven’t checked out how to call the different versions in the template, since I don’t use that stock image field. I just let the system downsample all uploads to a max setting. I looked through the database and could not find where these different versions are referenced. I believe that IP Pages is referenced as "CMS" in the database if I'm not mistaken but still couldn't find the different thumbnail sizes. Thanks again for the info @opentypeAnyone know how to reference them in the template files by any chance? Hopefully we see some documentation on this as they roll out RC1.
February 12, 201510 yr Author @Matt If you don't mind me pinging you on this since I believe you have a lot of involvement with IP Pages. I do see the thumbnail setting for IP Pages record images, but do you know how we would call them in our templates? So far, I have only been able to use this, but it is the full size image: <img src="{$row->record_image}"> Thanks again for the help and can't wait for RC1!
Archived
This topic is now archived and is closed to further replies.