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

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

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
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, 11 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

ocStaff (admin)

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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
Back to the top
 
Posted
Rating:
#79446
Avatar

ocStaff (admin)

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, 21 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.

Expand: Was I helpful? Was I helpful?

Expand: Follow me on Twitter Follow me on Twitter







If I answered something that you think should be in the documentation, please take the initiative and add it to the community documentation. We really need people to help out here and build a well-organised large support resource.
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
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: