HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Editing the News Forms

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#66605 (In Topic #14210)
Avatar

Well-settled

I would like to alter both the layout and the writing on the News form. I cannot find where the code controlling the form might be. When I click on "Show template" there is not a template for the form itself. I searched through the php page for the News form, but could not find the exact wording I want to change - that is the wording beneath the boxes to be filled in, and what those boxes are called. I also want to completely remove some sections of the News form. Is this outside of what I can do from my end?

Daniel Yordy
Back to the top
 
Posted
Rating:
#66606
Avatar

Honoured member

Hi,

Could it be that if you hit the 'source' option in the browser menu you get lines of code you can search for it in the code/program and so find the place where it is used/written?
Also if you find a line of text you can search for it in the >lang>EN>..files.. and so find the template name?

Greetings Puran.

21-7-1955 - 24-10-2011 I hope she rest in peace and I hope to see you soon.  Puran
Back to the top
 
Posted
Rating:
#66607
Avatar

Editing the news form in detail needs programming. Even if you were able to remove some HTML fields, ocPortal would then just complain they were missing when the form was submitted.

Forms are composed in code using a series of reused templates, such as POSTING_SCREEN.tpl.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#66608
Avatar

Well-settled

I can live with the unnecessary stuff (for my particular needs) on the form. (My students get quite confused just looking at it.) But is there a place where I can change the wording. I followed the advice and found this:

<div class="accessibility_hidden"><label for="title">Title</label>
<input type="hidden" name=
"label_for__title" value="Title" /></div>
I just want to change the bold word "Title" also, a bit later, "A concise title for this."

Just above, I see "posting_form" and have looked at that template, but I do not find these words. Are they changeable without programming?
Back to the top
 
Posted
Rating:
#66609
Avatar

Community saint

Have a look in /lang/EN/global.ini (assuming you are using the EN language) for the two instances I've highlighted in the attachment …


At least you will be able to 'alter' those two, HOWEVER, since it is a GLOBAL file you might find it alters things elsewhere that you may NOT wish it to.

Good luck!

 :thumbs:

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#66610
Avatar

Try the translate option in the dropdown in the site footer.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#66612
Avatar

Community saint

Chris Graham said

Try the translate option in the dropdown in the site footer.
So I checked it out …
An error has occurred
PHP ERROR [1] Call to undefined function get_lang_file_descriptions() in /home/fletch/public_html/anglo/sources/view_modes.php on line 201 (version: 6.0 beta2, PHP version: 5.2.15, URL: /anglo/pg/start/index.php?cache=0&keep_no_xhtml=1&redirected
=1&special_page_type=lang)

Expand: Here is the stack trace ... Here is the stack trace ...


Could this be peculiar to beta2?

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#66613
Avatar

yes, I found this bug too


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#66615
Avatar

Community saint

HAH!


Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#66616
Avatar

Well-settled

I used the language drop down you suggested, Chris, and it worked. Thanks.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: