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.


comcode pages and child links

Login / Search

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

Well-settled

child links to pages

Hi when I create a page the child links come up with N/A in some and the names in others, at the moment I have created some product pages I have h1 title in page I thought I did the same as each page with titles and child page code
I did paist stuff in from other places and added pics in to page can this effect the page and what can I do to correct this

Biz Global Solutions
Helping people financially and with knowledge
http://www.bizglobalsolutions.com
Back to the top
 
Posted
Rating:
#44273
Avatar

Well-settled

also  the following keeps coming up on child page and goes to page not found when clicked

<br />

Biz Global Solutions
Helping people financially and with knowledge
http://www.bizglobalsolutions.com
Back to the top
 
Posted
Rating:
#44281
Avatar

Hi,

Copy and pasting is indeed the likely cause. ocPortal is designed to recognise it's own HTML, either that coming out of ocPortal, or that which the WYSIWYG editor can directly produce.
It's likely there's something anomalous inside the h1 tag, like an unexpected attribute. This stops ocPortal converting it to a Comcode title.

So that's what's happening. But it's not really acceptable in this case (which is new to me), so the attached sources/comcode_text.php will make it more intelligent about the situation. It'll be more tolerant for the first h1 tag, and remove any unexpected markup rather than preserve it.

Attachment
» Download: comcode_text.php (102 Kb, 169 downloads so far)


You'll need to empty your Comcode page and block caches, or edit any of the pages involved.


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:
#44282
Avatar

bgsteam said

also  the following keeps coming up on child page and goes to page not found when clicked

Please see:
ocPortal.com - Entry: Links in Comcode


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:
#44309
Avatar

Well-settled

thx for that chris what folder do I load the comcode text.php to
And also where do I find the file that is meant to be included for entry links in comcode called  sources/comcode.php

Biz Global Solutions
Helping people financially and with knowledge
http://www.bizglobalsolutions.com
Back to the top
 
Posted
Rating:
#44324
Avatar

Sorry the file went missing there.
I've put the file back (and fixed the cause of it going missing!)

Both files belong in the sources directory.


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:
#44383
Avatar

Well-settled

the file link comes up with teh following

Not Found

The requested URL /uploads/catalogues/comcode.php.zip was not found on this serve

Biz Global Solutions
Helping people financially and with knowledge
http://www.bizglobalsolutions.com
Back to the top
 
Posted
Rating:
#44384
Avatar

Ergh, sorry about that. Try this please:
Attachment
» Download: comcode.php.zip (20 Kb, 190 downloads so far)


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:
#44387
Avatar

Well-settled

after loading that file to replace comes up with teh following
Fatal error: Call to undefined function: is_blank() in /home/bizgloba/public_html/main/sources/comcode.php on line 1815

Biz Global Solutions
Helping people financially and with knowledge
http://www.bizglobalsolutions.com
Back to the top
 
Posted
Rating:
#44400
Avatar

I accidentally attached the v3 file there. Sorry about all this. I have double checked this is the right file.

Attachment
» Download: comcode.php.zip (22 Kb, 158 downloads so far)


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
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: