1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

the categories

Discussion in 'General Troubleshooting' started by narc, Aug 29, 2010.

  1. narc

    narc Well-Known Member

    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.

    I want the url is constructed like this:

    how can the word "category" from the remove url?
  2. petsagouris

    petsagouris Design & Development

    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.
    narc likes this.
  3. Nick

    Nick Well-Known Member

    The category bar is shown via the header_end plugin hook. Here's what it looks like in the default theme (index.php):

    <!-- CATEGORIES, ETC -->
                <div id="header_end" class="grid_12">
                    <?php $h->pluginHook('header_end'); ?>
    You can exclude the categories plugin from that hook like this:

                 <div id="header_end" class="grid_12">
                     <?php $h->pluginHook('header_end''', array(), array('categories')); ?>
    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.
    narc likes this.
  4. narc

    narc Well-Known Member

    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.

    RewriteRule ^category/(.+)$ http://www.yourdomain.com/$1 [R=301,L]
    nothingman, valMETNG and Nick like this.
  5. alla.chandra

    alla.chandra New Member

    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

  6. Nick

    Nick Well-Known Member

    Enable Friendly Urls in Admin -> Settings. You will need to rename htaccess_default to .htaccess and edit the file if necessary.
    alla.chandra likes this.
  7. alla.chandra

    alla.chandra New Member


    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
  8. Nick

    Nick Well-Known Member

    Sounds like your .htaccess file isn't set up properly. A common mistake is naming it incorrectly. It should be ".htaccess".
  9. alla.chandra

    alla.chandra New Member

    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.
  10. ChaFF

    ChaFF Donor Donor

    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."
  11. Nick

    Nick Well-Known Member

  12. hco

    hco New Member

    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?
  13. Nick

    Nick Well-Known Member

    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.
  14. hco

    hco New Member

    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".
  15. Nick

    Nick Well-Known Member

    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.
  16. alla.chandra

    alla.chandra New Member

    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
  17. Nick

    Nick Well-Known Member

    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. :)
  18. alla.chandra

    alla.chandra New Member

    thanks alot for your reply

    htaccess problem solved and now it is fine
  19. scaza

    scaza Active Member

    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/?
  20. WimTibackx

    WimTibackx New Member

    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.

Share This Page