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 front page?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#45505 (In Topic #9962)

Non-joined user

Remind me again, how does one edit the central part of the front page? Not the menu blocks at the side or the news posts but the actual page?

I'd added a social bookmarking button there but need to change it to a different one. Can't remember for the life of me how to get to that bit now? If I click edit in the 'zone edit' thing it just goes blank (the side ones have blocks to edit and stuff but the central one just blank screen)

??



N,
Back to the top
 
Posted
Rating:
#45516
Avatar

Community saint

Go to the "Edit page" link at the bottom of the central section ...

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:
#45541

Non-joined user

There isn't one, not for the central bit.

Both side panels have "Edit in Zone editor" but nothing for the central panel?


N.
Back to the top
 
Posted
Rating:
#45600
Avatar

Community saint

Hi!

Admin Zone –> Structure –> Zone Editor

and select the appropriate zone from the dropdown list.

"no violence, no hate, no pain, no enemies
just peace, unity, tolerance and love" - The Beloved

OCP V7 | Advocating monetary reform - FreeOurMoney

Need OCP friendly hosting? Look no further:
Web Hosting, Reseller Hosting, and Dedicated Servers w/cPanel - Elief! - Official hosting partner for ocPortal.
Back to the top
 
Posted
Rating:
#45736

Non-joined user

I'll have a look, thanks!


Nope, does the same thing, just goes blank in the central section if I select anything other than "preview".

I must have edited this before, as it has a social bookmarking button on it and what I'm trying to do is to change that to a different button.
Back to the top
 
Posted
Rating:
#45737

Non-joined user

Could it be a template somewhere?
Back to the top
 
Posted
Rating:
#45739
Avatar

I'm not sure why that would happen, but you can also find the pages from the CMS zone, under the Comcode pages icon.


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:
#45796

Non-joined user

Ok, that's the one, the 'start' page, thanks!

Erm, remind me again how to insert a bit of javascript on there?

Do I have to create a block for it or something?

I tried putting following by

but it says:

There is an error (The tag url was closed but it was not the last tag in that level to be opened, which was title) in your Comcode at line 6.

This is the world's most popular bookmarking button; I find it unlikely they got the html wrong?

Ideally what I'd like is to add the bookmarking button to every new post, failing that then simply offering the bookmarking button for the start page will do.


N.
Back to the top
 
Posted
Rating:
#45797

Non-joined user

Mmm, it doesn't show the html tag thingies but anyway, I put the open html and close html tags around it.

I've also tried just putting the image and linking it but it doesn't seem to be able to link images, only text?


N.
Back to the top
 
Posted
Rating:
#45799

Non-joined user

*sigh*

Not sure how I did it but having deleted the script thingy I was trying to add, have apparantly deleted the footer for the front page?

:o?

N
Back to the top
 
Posted
Rating:
#45806

Non-joined user

This is the code I'm trying to use…

Code

<!-- AddThis Button BEGIN -->
<script type="text/javascript">var addthis_pub = "myusername";</script>
<a href="[url="http://www.addthis.com/bookmark.php"]http://www.addthis.com/bookmark.php[/url]" onmouseover="return addthis_open(this, '', '[URL]', '[TITLE]')" onmouseout="addthis_close()" onclick="return addthis_sendto()"><img src="[url="http://s7.addthis.com/static/btn/lg-share-en.gif"]http://s7.addthis.com/static/btn/lg-share-en.gif[/url]" width="125" height="16" border="0" alt="" /></a><script type="text/javascript" src="[url="http://s7.addthis.com/js/152/addthis_widget.js"></script"]http://s7.addthis.com/js/152/addthis_widget.js"></script[/url]>
<!-- AddThis Button END -->


I'm trying to stick it on the 'start' page, ie under latest news. As I said I'd ideally like to stick the little button on each post but just getting it on the main page would be a great start…?



N.
Back to the top
 
Posted
Rating:
#45807
Avatar

Turn off the WYSIWYG, as you can't post HTML directly into the WYSIWYG editor. You'll need to use the 'html' tag, but not with the WYSIWYG editor on.

If you're looking for step-by-step support on what templates to edit, and so on, we offer commercial support.


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:
#45818

Non-joined user

Well I tried that, no editor, pasted the code between the html blocks, exact same result, says there's a tag not closed.

I've tried putting it within the 'semihtml' tags and below, same result.

And I still seem to be missing the footer from my front page.

Back to the top
 
Posted
Rating:
#45823
Avatar

The code pasted above has been changed by ocPortal as it's detected URLs within it. I am guessing at some point you tried pasting it directly, seen it displayed literally rather than as HTML, then copy that back out and try the same altered code in a different way.
You'll need to go back to the original source of the code.


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:
#45831

Non-joined user

Sounds like a plan…!

Nope, tried that, same result.

Ironically when I try adding the code to an actual news post, it works fine?

 O_o

For now I've added the code and a little note to the 'note for staff' bit for the category. Just have to add it manually per post I guess.

Thanks anyway  :thumbs:


N.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: