Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Maulik Posted March 13, 2018 Posted March 13, 2018 Hello, We want to show "Add New Entry to Existing blog" Button [ https://prnt.sc/iqgnf5 ]on single entry/blog page with dropdown having all blogs created by that user. Can any one help in that ? TIA.
Maulik Posted July 9, 2018 Author Posted July 9, 2018 Can someone help me with this customization? Any help will be appreciated!
newbie LAC Posted July 9, 2018 Posted July 9, 2018 Hello, Edit the template blog - front - view - view. Code that you need {{$blogs = \IPS\blog\Blog::loadByOwner( \IPS\Member::loggedIn(), array( array( 'blog_disabled=?', 0 ) ) );}} {{if count( $blogs )}} <li class='ipsToolList_primaryAction'> {{if count( $blogs ) > 1}} <a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" href="#elCreateEntry_menu" data-ipsMenu id='elCreateEntry'> {lang="add_entry"} <i class='fa fa-caret-down'></i> </a> <ul class='ipsMenu ipsMenu_normal ipsHide' id='elCreateEntry_menu'> <li class='ipsMenu_title'>{lang="add_entry_to"}</li> {{foreach $blogs as $blog}} {{if $blog->disabled != 1}} <li class='ipsMenu_item'> <a href='{url="app=blog&module=blogs&controller=submit&id={$blog->id}" seoTemplate="blog_submit"}' class='ipsTruncate ipsTruncate_line'>{$blog->_title}</a> </li> {{endif}} {{endforeach}} </ul> {{else}} {{foreach $blogs as $blog}} {{if $blog->disabled != 1}} <a class="ipsButton ipsButton_medium ipsButton_important ipsButton_fullWidth" href="{url="app=blog&module=blogs&controller=submit&id={$blog->id}" seoTemplate="blog_submit"}"> {lang="add_entry"} </a> {{endif}} {{endforeach}} {{endif}} </li> {{endif}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.