Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
datacapture.cfg FormAPI to determine category/type
war
Is there a function in FormAPI or a method to grab :
a) the location of where a datacapture.cfg sits (i.e. - <vpath>/category/type/datacapture.cfg
b)determine what category/type the datacapture.cfg belongs to.
While filling in a DCT, I would like to be able to determine what directory/path/category the DCT belongs to. I want to be able to grab this value and use it to set some hidden values.
thanks!
Find more posts tagged with
Comments
Migrateduser
function getCategoryAndType()
{
return( top.gTDT );
}
function getCategory()
{
return( getCategoryAndType().substring( 0, getCategoryAndType().indexOf( "/" )));
}
function getType()
{
return( getCategoryAndType().substring( getCategoryAndType().indexOf( "/" ) + 1 ));
}