I have two questions regarding the categories. 1st how can I remove the categories in the header section. I use the categories plugin for the sidebar. therefore I do not need them in the header section. 2nd bothers me the path of the url. example. http://mydomain.com/category/hotest-news/ I want the url is constructed like this: http://mydomain.com/hotest-news/ how can the word "category" from the remove url?
I don't think this is currently possible. You can always play around with .htaccess, that is the only possibility that I can see this happening right now.
The category bar is shown via the header_end plugin hook. Here's what it looks like in the default theme (index.php): PHP: <!-- CATEGORIES, ETC --> <div id="header_end" class="grid_12"> <?php $h->pluginHook('header_end'); ?> </div> You can exclude the categories plugin from that hook like this: PHP: <!-- HEADER END STUFF EXCEPT CATEGORY BAR --> <div id="header_end" class="grid_12"> <?php $h->pluginHook('header_end', '', array(), array('categories')); ?> </div> Petsagouris is right that you cannot remove "category" from the url of a category page. If it was removed, Hotaru would think "hottest-news" was a post title.
solution: Many content management sytems use the ?category? URL segment. For instance: http://mydomian.com/category/category-name Well, that?s fine, and it?s necessary to make the CMS work the way it?s supposed to, but it doesn?t need to be visible to do its job. Just drop the following code into your htaccess file to get rid of it. Code: RewriteRule ^category/(.+)$ http://www.yourdomain.com/$1 [R=301,L]
Any body help me that When i click a perticular category then the url is like http://www.mydomain.com/index.php?category=5 but i want like this http://www.mydomain.com/category-name Next one is that clicking on bookmark url in mysite give the url like http://www.mydomain.com/index.php?page=84 and it is not seo link. I think that it is better to like this http://www.mydomain.com/category-name/Karisma-s-marriage-in-trouble OR http://www.mydomain.com/category-name/bookmark-url-title Presently iam using Hotaru 1.3.0 thanks
Enable Friendly Urls in Admin -> Settings. You will need to rename htaccess_default to .htaccess and edit the file if necessary.
Thanks The urls working fine now but When enable the friendly urls in Admin, we are unable to submit any link and reloading home page itself
Sounds like your .htaccess file isn't set up properly. A common mistake is naming it incorrectly. It should be ".htaccess".
Thanks Nick According to you, I done common mistake but now i changed the "htaccess" file name to ".htaccess". Even though iam unable to login as admin and user.
when I switch friendly url on for some reason site stops working and any link get this error "Oops! This link appears to be broken."
@alla.chandra & @ChaFF Neither of your last posts are asking a question or providing any information that could help me to help you. Please read this before posting: http://forums.hotarucms.org/showthread.php?606-Before-Posting-PLEASE-READ-THIS-FIRST!!!
Category not working; links can't be found through categories Category not working at all on my new hotaru site. When added a link and chosen a category, the link can't be found on the exact category but except on the " latest " only. Is something wrong? What can l do to fix that?
The link will be under "latest" or "all" in the sort filters. It will show up under the"popular" filter when it becomes popular, i.e. gets enough votes to be a top story.
Well, that is a different story I think. What I am saying is when submit a story you have to choose a category and sometimes add tag, but my story can be located on the category I submitted them or even by keyword tag, which I don't think is right. When click on the exact category it says "no post".
That's right, because category and tag pages default to the "popular" filter, but your posts aren't "popular" yet. You'll find them under the "latest" or "all" filters.
I just came across to your Hotaru CMS and it is fully supported plugin CMS with good SEO. I will definitely help to you and all but iam in learning stage sothat give some time for me You have done excellent work and Iam specially thank to you and all of supporters of this CMS
That's appreciated, but not what I meant. I meant that I can help you more if you give me more information about your htaccess problems.
do the dashes also get added by .htaccess? I've created a plugin and the pages show up as /podcast/episode 1/ How can I change it to be /podcast/episode-1/?
You can use make_url_friendly($yourVar). If you use the posts table, you need to save that (as part of the whole url) in the post_url field. Hotaru will then automatically detect the post.