Does anyone know a way to change the author's name in CGBlog? without
1. Changing user
2. Changing tables in database
How to change author's name in CGBlog
- master3395
- Forum Members

- Posts: 96
- Joined: Mon Mar 30, 2015 7:13 am
Re: How to change author's name in CGBlog
Add a custom field to the module and use that one for the author name shown in the frontend
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Re: How to change author's name in CGBlog
Or: If you want to change the author for all posts, look for this in the summary template (for example):
and replace {$entry->author} with the new name.
If you want to change for just one person's posts you should be able to do an if-then-else with smarty to display a new name conditionally:
https://www.smarty.net/docsv2/en/langua ... ion.if.tpl
Code: Select all
{if $entry->author}
<div class="CGBlogSummaryAuthor">
{$author_label} {$entry->author}
</div>
{/if}If you want to change for just one person's posts you should be able to do an if-then-else with smarty to display a new name conditionally:
https://www.smarty.net/docsv2/en/langua ... ion.if.tpl
To copy System Information to the forum:
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016
https://docs.cmsmadesimple.org/troubles ... nformation
CMS Made Simple Geekmoots attended:
Nottingham, UK 2012 | Ghent, Belgium 2015 | Leicester, UK 2016


