Blog Post Image

Ceri
Ceri
@adolygwr
7 years ago
370 posts
I want to show blog list images on list pages like this:- https://americymru.net/#latest-blogs

But not on individual blog posts. What template adjustments do I need to make to prevent blog list images appearing in blog posts and how do I make them appear on my blog list pages? Code for the above linked blog listing page is quoted below.

<div><span style="color: #ffffff;">...</span></div><div style="padding:0 10px;"><div style="background-color: #ffffff;">
<p style="text-align: center;"><span style="font-family: Arial Black,Arial Bold,Gadget,sans-serif; font-size: 14px; font-style: normal; font-variant: small-caps; font-weight: bold; line-height: 15.2px;"><a href="{$jamroom_url}/blog/create">ADD A POST</a></span></p>
</div>
<div><p></p></div>{* Get Our List Limit *}
                        {if isset($_conf.jrNingja_blog_pagebreak) && $_conf.jrNingja_blog_pagebreak > 2}
                            {assign var="blog_pb" value=$_conf.jrNingja_blog_pagebreak}
                        {else}
                            {assign var="blog_pb" value="10"}
                        {/if}
                        {* Got Our List Limit *}
                        {if strlen($_conf.jrNingja_blog_profile_ids) > 0}
                            {jrCore_list module="jrBlog" search1="_profile_id in `$_conf.jrNingja_blog_profile_ids`" order_by="blog_publish_date numerical_desc" template="index_blog_row.tpl" pagebreak=$blog_pb page=$_post.p}
                        {else}
                            {jrCore_list module="jrBlog" order_by="blog_publish_date numerical_desc" template="index_blog_row.tpl" pagebreak=$blog_pb page=$_post.p}
                        {/if}



--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 11/11/17 12:01:51AM
michael
@michael
7 years ago
7,715 posts
You've got some decisions to make:
* Which format is going to be the default?

Is probably the first, because you're going to need to change how the other way works. .... actually not sure whats going on.

I expected to see "Rae Howells Wins Welsh Poetry Competition!" in exactly the same format on both these pages:
https://americymru.net/#latest-blogs
https://americymru.net/ceri-shaw/blog/category/poetry

But they are not. They look different, so they are probably running on the different templates. If they are then all you need to do is figure out which template controls which and adjust it.

It will be found in the {jrCore_list} for their respective pages.

The code above does not seem related, both of those {jrCore_list} calls call the index_blog_row.tpl template.