Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • blink black Friend
    #168724

    Please, I will like to make all content articles to be Sentence cases. That is: if any user creates a new article and enters the title as “new article of the day”…. When they save the article, I want the title to change to “New Article Of The Day”… Is this possible?

    jneubauer Friend
    #413636

    As far as I know, that is not possible – the structure is totally dependant on the input.
    This is a core Joomla! problem though, so you might check forum.joomla.org to see if someone has found a workaround or “hack” to do something similar.

    blink black Friend
    #413637

    Thanks. let me check over there

    blink black Friend
    #413639

    I found one that changes it to UPPERCASE. Let me dig in some more and see if i can find one that changes it to Sentence case

    In this case open the /components/com_content/content.html.php file and look for the Title function. In my case this is 617th line. In this function you can see the following line twice:

    Code:
    <?php echo $row->title;?>

    Change both of them to:

    Code:
    <?php echo(strtoupper($row->title));?>

    blink black Friend
    #413640

    I found another one. I dont know which one to choose now

    Sorry to post again – this can be done much easier with CSS

    text-transform:capitalize

    or

    text-transform:uppercase

    Add it to the .contentheading section of your template_css.css

    You should try to aviod changing the core files if possible!

    jneubauer Friend
    #413641

    perfect!
    Try implementing that, and change the word strtoupper to ucwords
    http://php.net/manual/en/function.strtoupper.php
    http://www.php.net/manual/en/function.ucwords.php

    jneubauer Friend
    #413642

    regarding the css method – which Joomla! version are you using?

    blink black Friend
    #413733

    Using Joomla 1.5.23

    blink black Friend
    #413735

    Could not implement the first one becuase I cant find this file: /components/com_content/content.html.php

    n6rej Friend
    #413750

    that should be located in /public_html/components/com_content/

Viewing 10 posts - 1 through 10 (of 10 total)

This topic contains 10 replies, has 3 voices, and was last updated by  n6rej 13 years, 2 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum