Jump to content
jav100

Customize The Form That Adds New Listings

Recommended Posts

Hello,

How do I (or where is the file) to customize the form when someone adds a listing?

I want to change the text "Listing Title" to "Business Name" or something along those lines.

Thanks,

J

Share this post


Link to post

This can be done through the listing type setup language tab and custom themes.

Create a new default.po file in a folder structure according to the documentation such as:

root/templates/jreviews_overrides/local/eng/LC_MESSAGES/

Copy the lines 898, 899 from the original default.po file:

root\components\com_jreviews\jreviews\locale\eng\LC_MESSAGES\default.po


msgid "LANG_LISTING_FORM_TITLE"
msgstr "Listing Title"

to your new custom default.po file.

Change the msgid and msgstr value to what you want like

msgid "LANG_LISTING_FORM_TITLE_BUSINESS"
msgstr "Business Name"

Then change the language string in the listing type language tab from

LANG_LISTING_FORM_TITLE

to

LANG_LISTING_FORM_TITLE_BUSINESS

Clear the jreviews cache.

You need to edit these according to the theme/language customization documentation found in How to edit JReviews language files and add them in a/your custom theme as per the JReviews Theme Customization.

I have attached the file structure with the default.po file. All you need to do is unzip and upload it to your root/templates/ folder then change the string in the listing type language section.

You might not be able to append the msgid by adding the _BUSSINESS to it. It may have to be the default LANG_LISTING_FORM_TITLE in the .po file and listing type language string but try it both ways. For some reason I am thinking you can in the listing types and addons.

jreviews_overrides.7z

Edited by DanielH
Added directories and custom default.po for upload.

Share this post


Link to post

That's the thorough way to do it if you can switch languages on the site. Otherwise you can just add your translation directly in the Listing Type language tab replacing the constant LANG_LISTING_FORM_TITLE with your text.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Please refer to our Privacy Policy.