Default 500 ?

Ceri
Ceri
@adolygwr
7 years ago
370 posts
How do I get rid of the meaningless 'Default 500' link on my blog page and replace it with a normal category list. See pic below:-


--
Ceri Shaw - AmeriCymru

updated by @adolygwr: 10/30/17 08:07:42AM
michael
@michael
7 years ago
7,715 posts
Guess is its probably related to you moving the tags to the top of the stuff from this thread:
https://www.jamroom.net/the-jamroom-network/forum/new_posts/53111/tags-at-the-top-of-blog-pages
Ceri
Ceri
@adolygwr
7 years ago
370 posts
Nope....nothing to do with that. Actually I moved them all back to where they were before. Here is a sample post:- https://americymru.net/ceri-shaw/blog/4799/nafow-2017-eisteddfod

Basically this default 500 thing has been around since I launched the site but I noticed that on other peoples blog listing page this does not occur. Here is a sample:- https://americymru.net/phil-wyman/blog

I just want mine to look like Phil's (link above) :)


--
Ceri Shaw - AmeriCymru
paul
@paul
7 years ago
4,326 posts
Those buttons show all the blog categories and 'default' is shown when a blog has no category, so you have 500 'uncategorised' blogs!! Unfortunately the word 'default' is hard coded within the Blog module and I'm thinking that it should be part of the module's language set so that users can change it if they want to. I'll get the module updated to do that.
Alternatively, the module's item_list.tpl template could be modified to exclude that button - replace line 23
<a href="{$_c.url}"><div class="stat_entry_box"><span class="stat_entry_title">{$_c.title}:</span>&nbsp;<span class="stat_entry_count">{$_c.item_count}</span></div></a>
 
with
{if $_c.title != 'default'}
    <a href="{$_c.url}"><div class="stat_entry_box"><span class="stat_entry_title">{$_c.title}:</span>&nbsp;<span class="stat_entry_count">{$_c.item_count}</span></div></a>
{/if}
hth


--
Paul Asher - JR Developer and System Import Specialist
paul
@paul
7 years ago
4,326 posts
Have just looked at this and see that at times the category is used in URLs and it being 'default' is specifically tested for, so simply making it a language string will break things elsewhere, so the best solution would be the template edit as described above, or maybe this one to change the string to 'uncategorised', say -
            {foreach $_cats as $_c}
                {$ctitle = $_c.title}
                {if $ctitle == 'default'}
                    {$ctitle = 'uncategorized'}
                {/if}
                <a href="{$_c.url}"><div class="stat_entry_box"><span class="stat_entry_title">{$ctitle}:</span>&nbsp;<span class="stat_entry_count">{$_c.item_count}</span></div></a>
            {/foreach}



--
Paul Asher - JR Developer and System Import Specialist
Ceri
Ceri
@adolygwr
7 years ago
370 posts
Hi Paul

I don't have a problem with the word 'default' but I note from the blog listing pages that I have 1496 posts on that profile and the link at the top of the page has always said 'Default 500' and continues to do so no matter how many new posts I add. Also it is not the case that they are all uncategorised. ALL posts since I migrated have been categorised and tagged. I just re categorised my first blog post (from the Ning site) and it has no effect on the category links.


--
Ceri Shaw - AmeriCymru
michael
@michael
7 years ago
7,715 posts
probably the search is limited to 500 entries.

The goal is to get rid of it, its put there by the skin, in the
/skins/jrNingja/profile_sidebar.tpl

comment that out or remove it. ( think you're good with template alterations, if you need further steps just say )
stats.jpg
stats.jpg  •  119KB

michael
@michael
7 years ago
7,715 posts
OOPS, sorry, not that, its in the jrBlog module
/modules/jrBlog/templates/item_index.tpl
blog_stats.jpg
blog_stats.jpg  •  85KB

Ceri
Ceri
@adolygwr
7 years ago
370 posts
Hi Michael

Wouldn't that remove it globally? I don't want it gone altogether, in fact it's kind of essential to our future plans. I just want it to look more like this:- https://americymru.net/americymru/blog

If I were to categorise all those uncategorised old blog posts from the Ning site would that solve the problem?


--
Ceri Shaw - AmeriCymru
michael
@michael
7 years ago
7,715 posts
Yes, it would remove it everywhere. sorry I thought that was the goal. If the goal is to put everything into a category, then unless im missing something again, click on the DEFAULT:500 and get a list of all those blog posts

https://americymru.net/ceri-shaw/blog/category/default

Then update them so they have a category.

--edit--
Could be a good use-case for the BATCH ITEM EDITOR. search for all the blog posts with the category DEFAULT and change it to what you want.
updated by @michael: 07/31/17 09:54:58PM
Ceri
Ceri
@adolygwr
7 years ago
370 posts
k....will try that. Many thanks :)


--
Ceri Shaw - AmeriCymru