×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: where can I find the layout files?

where can I find the layout files? 5 years 10 months ago #15135

  • Nico Jacobs
  • Nico Jacobs's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi,

I purchased this comment extension a while ago. And now that I'm finally setting it all up I have some problems modifing the Layout.

I would like to use the magazine-Joomla layout, but where can I found the layout file that holds all the input fields, captcha and button?

I can see the css files and images but no layout file in /components/com_comment/joscomment/templates/magazineJoomla/

I also have a Problem with the german translation it seems to work only 50%.

e.g. I dont know how to translate this phrases.
"Leave a comment"
"Make sure you enter the (*) required information where indicated."
"submit comment"

Nico

Re: where can I find the layout files? 5 years 10 months ago #15143

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
Hey Nico,
The file that holds all the inputs is in
components/com_comment/joscomment/templates/magazineJoomla/index.html - yep! Index.html! The template system for ccomment was developed ages ago :) We parse the index.html file our self and replace the stuff in the curly braces {}.

In ccomment5 things will change and we will finally move to the MVC architecture and we will have a new template system similar to K2.

About the german translation. Yesterday I found out that there is an error in the first line of the file -> there are 3 quotes on that line and they should be actually just 2. The german translation is also 84% ready - according to transifex: opentranslators.transifex.net/projects/p...rontend_com_comment/

If you want to help with the translation, then please join opentranslators: opentranslators.org/ and after that you will be able to directly modify the file on the transifex website. Making the translations on transifex actually guarantees that translations will be added back in the project on time.

Hope that this help, if you have any additional questions don't hesitate to ask!
Daniel

Re: where can I find the layout files? 5 years 10 months ago #15151

  • Nico Jacobs
  • Nico Jacobs's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi Daniel,

thanks a lot for your quick reply! I guess I m just not used to check index.html files in joomla folders :).

The rest of the translation shouldnt be a big thing, there are just the time variables left (% year etc.), but some of the strings in the layout are hardcoded.

Nico

Re: where can I find the layout files? 5 years 10 months ago #15154

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
What strings in the layout are hardcoded? (just for my information)

Re: where can I find the layout files? 5 years 10 months ago #15155

  • Nico Jacobs
  • Nico Jacobs's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Hi

I'm using the magazineJoomla Template as base.

and here I can see the following lines:

<h3 id="CommentFormTitle">Leave a comment</h3>
				<p>Make sure you enter the (*) required information where indicated.</p>

and in the input fields the onblur text
"enter your message here..."

Re: where can I find the layout files? 5 years 10 months ago #15156

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Away
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 154
  • Thank you received: 1081
Ah I see! WEll, this template was actually never supposed to go in the main package. It was designed for magazine.joomla.org :) But due to a mistake on my side - it is in the package and I left it as it is.

Cheers,
Daniel

P.S. The js checks in that template are also hardcoded - check the js folder.

Re: where can I find the layout files? 5 years 10 months ago #15157

  • Nico Jacobs
  • Nico Jacobs's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Yes I thought so too, I looked in some of the other template html files, there seemed no hardcoded code to be.

Anyway now that I know where to modify the template it's not that big of a deal to translate the missing strings.



Thx again
Nico
  • Page:
  • 1
Time to create page: 0.122 seconds