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.


Image link in Comcode page problem

Login / Search

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

Well-settled

I'm trying to create an image link in a Comcode page, but everytime when content is saved the link is lost.
  1. Edit a comcode page (e.g. Start page)
  2. Insert an attachment
  3. Select it
  4. Insert a link to any other page
  5. Save page
  6. The link information is lost
Do you have any advice?

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#79438
Avatar

Are you trying to add a link around an attachment, using the WYSIWYG editors link button?

Is it around the [attachment] tag code?

My feeling is that probably produces it's own link and you'd probably end up with invalid HTML that was, at some level, cleaned up.


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

Well-settled

Hi Chris,

Yes, I used WYSIWYG link button. Attached bellow is a text file with HTML code after adding a link. It seems fine to me and not sure what could be the reason.

However, do you have any other advice how to insert link to an image?

Attachment
» Download: ImageLink.txt (432 Bytes, 102 downloads so far)

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
Posted
Rating:
#79444
Avatar

You'll need to turn off the 'Convert HTML to Comcode' option for now in the site options Configuration.


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

Thanks. Someone else had reported this on the tracker, but I wasn't able to reproduce. Now I could due to your test case, thanks :).

It thought your link was a part of the attachment (linking to the full version of it), so it stripped it out when it replaced the attachment's HTML back with the attachment's Comcode.

This one is smarter - it realise non-thumb images don't have links, so leaves the link alone.

Attachment
sources/comcode_from_html.php
» Download: comcode_from_html.php (47 Kb, 105 downloads so far)


That said, the Convert to Comcode option won't be on by default in v8 as we're moving to a situation where we'll by default treat complex HTML and Comcode both as first-class acceptable markup for content.


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

Well-settled

That's it! Thanks, Chris.

FeminaPortal - Female Internet Portal (powered by ocPortal)
INFORBIRO - Information Technology Agency
BlicKlik - Internet Marketing and Advertising
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: