BN Guess Blog Name
Developer
3rd Party (Free)
Compatibility
- LG Addon Updater
- Multi Site Manager
- Stand Alone Entry Form
Requirements
- FieldFrame
- jQuery for the Control Panel
- Hermes
BN Guess Blog Name does one simple thing. It strips the following words out of a provided variable: _detail, _archive, _landing, etc.
Example use:
{exp:bn_guess_blog_name segment="{segment_2}"}
You have template code that is almost identical for the Articles and News section of your site, except the weblog name is different in each template. You can turn that common code into an embed, and pass in the weblog name as a variable (weblog_name=“news”) Unfortunately, if you have multiple levels of embeds it can be difficult to keep all of the embed variables straight several layers down. If your template name is based on the short name of your weblog, you can use this plugin “guess” the name of the weblog from the template name in the page’s url_title.
If, for example, you have a weblog named “news”, and a template called “news_detail”, this plugin can shorten the word “news_detail” and output the word “news” in the exp:weblog:entries tag. As i mentioned, this is probably really only useful if you have multiple weblogs using the same custom fields, and you have lots of nested embeds.
BN Guess Blog Name Links
Is this add-on incomplete?
Have we missed something? Do we need to add tags? Better description? More links?
Help Us Help You
Registered members can help contribute - comments, add-on information, developer information, and more. Registration is free and takes only a moment. Register Now!
This entry was last updated October 31, 2009, 6:41 am.
Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. Commercial add-ons are not offered for download at this site. Devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, or general popularity. Caveat EEmptor!
There are no reviews for this add-on yet.
What are you waiting for? Rate it and review it!