Monday, May 21st

Last update05:36:30 AM GMT

Font Size

Screen

Profile

Layout

Menu Style

Cpanel
Welcome, Guest
Username Password: Remember me

Change Save button text on a Web Link Submission?
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Change Save button text on a Web Link Submission?

Change Save button text on a Web Link Submission? 2 years ago #2784

  • austega
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 1
I have searched without success but fear this is still a simple question. I want to change the text currently appearing on the Save button on a Web Link Submission menu type. I have attached a screen shot of the current page (page 1 of the attached file) that I want to change.

Where is this language string controlled? I have looked in the /language/en-GB/en-GB.com_weblinks.ini file with no success. Are the Save and Cancel buttons and their text inherited from somewhere higher up?

Any guides out there?

Attachment Suggest_a_suitable_link.pdf not found

Attachments:
Austega Information Services
m 0415 715 743
w austega.com
w big-issues.org

Re: Change Save button text on a Web Link Submission? 2 years ago #2785

Hmm - is there a component running this web link submision - or is it just a form - theoretically you should be able to change it within the form - if you are using a component to make forms - it may or may not be easily done through teh backend - bit hard to tell for sure if taht's h solution - depends on how things are set up - an yes could be usign a language file also - but should be able to change within the form at the html level.
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re: Change Save button text on a Web Link Submission? 2 years ago #2786

PS - I think the site may have a few aesthetic issues in IE8
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re: Change Save button text on a Web Link Submission? 2 years ago #2787

  • austega
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 1
Hi Audra - thanks for responding.

I think the form is defined in

/components/com_weblinks/views/weblink/tmpl/form.php

where lines 94-96 read

	<button type="button" onclick="submitbutton('save')">
<?php echo JText::_('Save') ?>
</button>
 


My current learning tells me that the JText element is going to return the language string for the 'Save' identifier as listed in some language ini file. If this is correct, my problem is that I cannot find the language ini file. It does not seem to be /language/en-GB/en-GB.com_weblinks.ini which I had expected it to be...

I think I can hack the form.php file itself but thought it better to find the language file that contained the string.

Maybe JText doesn't necessarily imply that such a language file exists but only allows for it?

Any further guidance?
Austega Information Services
m 0415 715 743
w austega.com
w big-issues.org

Re: Change Save button text on a Web Link Submission? 2 years ago #2788

  • austega
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 1
Mmm... please tell me more about the IE8 aesthetic issues. I can't see anything specifically failing in IE8. Not that the site couldn't use improvements.

The Submit a Web Link option should only be visible to logged in users.
Austega Information Services
m 0415 715 743
w austega.com
w big-issues.org

Re: Change Save button text on a Web Link Submission? 2 years ago #2789

  • austega
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 1
Problem Solved...

I think I have learnt something new about the language ini files.

In this case I simply added a new line SAVE=Submit to the /language/en-GB/en-GB.com_weblinks.ini and presto the button now says Submit rather than Save.

It seems the language ini files work as optional overrides rather than as being required for each JText label. Another Joomla lesson learned!

(Of course let me down gently if I still have this arse about face.)
Austega Information Services
m 0415 715 743
w austega.com
w big-issues.org

Re: Change Save button text on a Web Link Submission? 2 years ago #2790

Hi David - sorry I should have recongised teh weblinks component!! Shows how much attetion I'm paying.

Hmm I think a template override is a better solution - but your solution works too! Your solution may affect other things that use the ini file and also may be washed away in upgrades.


The template issues wre small just left hand column a teeny bit uneven on a few pages - can't recall which - may have been contact page.
-----------------------------------------------------
www.jbtwebsites.com.au
www.joomla-training-ground.com

Re: Change Save button text on a Web Link Submission? 2 years ago #2792

  • austega
  • OFFLINE
  • Senior Boarder
  • Posts: 69
  • Karma: 1
Agree with the logic of template override. In this case I am anticipating changing templates on this site in the next month or so.

I have seen some uneven spacing between modules in the left hand column from time to time - will look further for this as we change the template.

Thanks for your help (and company) in this one.
Austega Information Services
m 0415 715 743
w austega.com
w big-issues.org
  • Page:
  • 1
Time to create page: 0.68 seconds
You are here: Forum