Change content type from External Link to Content - bug?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

Change content type from External Link to Content - bug?

Post 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.
Last edited by jmcgin51 on Mon Jul 21, 2008 8:56 pm, edited 1 time in total.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

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

Post by jmcgin51 »

If someone can confirm this issue, I'll submit a bug report.

Thanks
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

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

Post 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".
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

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

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
jmcgin51
Power Poster
Power Poster
Posts: 1899
Joined: Mon Jun 12, 2006 9:02 pm

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

Post 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!
Post Reply

Return to “CMSMS Core”