Page 1 of 1

Change content type from External Link to Content - bug?

Posted: Mon Jul 21, 2008 8:51 pm
by jmcgin51
Using CMSMS 1.3.1 Havana, I created a new "page" using the "External Link" content type.  I set the target to "_blank" so that the link would open in a new window.  This worked fine, and for the past few weeks, the site has been running with no issues.

Today, I needed to change that link to a regular page.  So I opened the page in the admin, changed the Content Type from "External Link" to "Content", and completed the rest of my changes, adding text, etc.  Everything works fine EXCEPT that the page still opens in a new window.  The "target='_blank'" attribute is still being applied for some reason.

I'm going to look in the db to see if I can change this manually, or if I will have to erase and recreate the page from scratch.

Can anyone else reproduce this issue?

---
EDIT TO ADD:
Looking at the db, this page shows "url,target,content_en" in the prop_names field.  If I remove "url,target", everything works OK.

Re: Change content type from External Link to Content - bug?

Posted: Mon Jul 21, 2008 8:57 pm
by jmcgin51
If someone can confirm this issue, I'll submit a bug report.

Thanks

Re: Change content type from External Link to Content - bug?

Posted: Mon Jul 21, 2008 9:45 pm
by kermit
content type "content" does not have a "target" option; so is not displayed when that type is chosen.

remove the target while content type is still set to "external link", then change content type to "content".

Re: Change content type from External Link to Content - bug?

Posted: Mon Jul 21, 2008 11:02 pm
by calguy1000
content pages have a 'target' dropdown in 1.4 :)

also, if you changed the content type back to link, changed the target to _none', hit apply then changed the content type back to 'content'.... I don't think you would lose any data.

Re: Change content type from External Link to Content - bug? (SOLVED)

Posted: Tue Jul 22, 2008 2:49 am
by jmcgin51
so it sounds like this really probably isn't a bug, but just the software working differently from what I expected.  I expected that if you changed content types, all the attributes associated with the previous content type would be cleared.  It doesn't work that way, so I'll just keep this in mind for the future.

thanks kermit and calguy!