test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • rbeste Friend
    #172181

    I want to remove from the article labels “Created on” and “Written by” so it leaves just the Date and “By “.

    You could do this In J1.5 by editing en-GB.com_content.ini and changing the line WRITTEN BY=Written by %s to WRITTEN BY=By %s

    Under j1.7 those lines have been changed to:

    COM_CONTENT_FIELD_CREATED_BY_ALIAS_LABEL=”Created by alias”
    COM_CONTENT_FIELD_CREATED_BY_DESC=”You can change here the name of the user who created the article.”
    COM_CONTENT_FIELD_CREATED_BY_LABEL=”Created by”
    COM_CONTENT_FIELD_CREATED_DESC=”Created Date”
    COM_CONTENT_FIELD_CREATED_LABEL=”Created Date”

    But editing those lines doesn’t seem to have any effect on the labels. Any guidance on this would be much appreciated.

    TomC Moderator
    #431271

    Are these not selectable parameters within the article configurations itself?

    rbeste Friend
    #431273

    Hi Tom,

    The article configurations allow me to disable the author and date label but I don’t want to do that. I want to have just the date instead of “Created on Date” and “By Author” instead of “Written by Author”.

    TomC Moderator
    #431276

    [FONT=arial]If you only want to remove the text ‘Created on’, but leave the date, you’ll need to edit the language file for your site:[/FONT]

    1. Navigate to /language/en-GB (given your site is using the English language).
    2. Edit the en-GB.com_content.ini file
    3. Around line 23, you should see<blockquote>
      COM_CONTENT_CREATED_DATE_ON=”Created on %s”
    4. </blockquote>

    5. Change this line to read
      COM_CONTENT_CREATED_DATE_ON=”%s”


    6. Save File . . . Clear Cache . . . Refresh Page

      ​

    Hope that helps

    😎

    TomC Moderator
    #431278

    Likewise, to change “Written By” . . . .

    Change the following line as shown in the file en-GB.com_content.ini located in the directory languageen-GB.

    Before change:
    <blockquote>WRITTEN BY=Written by %s</blockquote>

    After change:

    <blockquote>WRITTEN BY=By %s</blockquote>

    Hope that helps

    😎

    rbeste Friend
    #431284

    Hi Tom,

    Those lines are not in the en-GB.com_content.ini file under J1.7 (or at least not in the JA Rave Quickstart setup). The equivalent lines were there under J1.5, as I used them for this purpose. I’ll try adding them to the J1.7 file and see if that does the trick.

    rbeste Friend
    #431286

    Hi Tom.

    No luck. I tried adding those lines to en-GB.com_content.ini — as they are not there in J1.7 — but they had no effect. Any other suggestions much appreciated.

    TomC Moderator
    #431289

    <em>@rbeste 291303 wrote:</em><blockquote>I want to remove from the article labels “Created on” and “Written by” so it leaves just the Date and “By “.

    You could do this In J1.5 by editing en-GB.com_content.ini and changing the line WRITTEN BY=Written by %s to WRITTEN BY=By %s

    Under j1.7 those lines have been changed to:

    COM_CONTENT_FIELD_CREATED_BY_ALIAS_LABEL=”Created by alias”
    COM_CONTENT_FIELD_CREATED_BY_DESC=”You can change here the name of the user who created the article.”
    COM_CONTENT_FIELD_CREATED_BY_LABEL=”Created by”
    COM_CONTENT_FIELD_CREATED_DESC=”Created Date”
    COM_CONTENT_FIELD_CREATED_LABEL=”Created Date”

    But editing those lines doesn’t seem to have any effect on the labels. Any guidance on this would be much appreciated.</blockquote>

    When you tried to change the lines above …. and saved the changes, did you also clear your JAT3 and browser cache before refreshing your page?

    rbeste Friend
    #431292

    Hi,

    Yes, I’ve been clearing cache and refreshing the page every time I’ve made changes. As the line:

    COM_CONTENT_FIELD_CREATED_BY_LABEL=”Created by”

    doesn’t have “Written by” — which is what is displayed – I think the changes needed must somewhere else.

    rbeste Friend
    #431851

    Many thanks, Tom. Using your suggestions I have now cracked it.

    The lines are:

    19 COM_CONTENT_CREATED_DATE_ON=”Created on %s”
    55 COM_CONTENT_WRITTEN_BY=”Written by %s”

    Change to:

    19 COM_CONTENT_CREATED_DATE_ON=”%s”
    55 COM_CONTENT_WRITTEN_BY=”By %s”

    Your help and patience much appreciated.

    TomC Moderator
    #431853

    Very glad to have been of assistance.

    All the best with your continued web development !!!

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

This topic contains 11 replies, has 2 voices, and was last updated by  TomC 12 years, 12 months ago.

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