install.xml : what am I missing?
Permalink
I am using install.xml to install blocks and singlepages in my package
I have tried this with pagetype=”” as well.
The page gets made, but, there is no template associated with it, so I can’t actually add any blocks to it
what am I doing wrong? do I need to define a different kind of pagetype? or add some other parameters?
<?xml version="1.0"?> <concrete5-cif version="1.0"> <blocktypes> <blocktype handle="episode_list" package="itt"/> </blocktypes> <singlepages> <page name="Shows" path="/shows" filename="/packages/itt/single_pages/shows.php" pagetype="right_sidebar" description="" package="itt"></page> </singlepages> </concrete5-cif>
I have tried this with pagetype=”” as well.
The page gets made, but, there is no template associated with it, so I can’t actually add any blocks to it
what am I doing wrong? do I need to define a different kind of pagetype? or add some other parameters?
any ideas at all?
update
posting an update..
in testing in created the follwoign install.xml, which created three versions of singlepages with three different paths
bizarrely (to me), the first one, which actually has the functional filename to the php file, generates a page with no template.
the last two, with have broken filenames, generate working pages with templates!
If I add these single pages through the Add SinglePages only the last one works, which tells me that the ‘filename’ C5 expects is not the actual filename/location but the routing ‘filename’.
so, problem solved. However, it would be convenient if the package installer returned error messages. I mean, if the “add single page” returns an error, than I would assume the SinglePage::add() function called somewhere inside the importContentFile() function would also see an error.
posting an update..
in testing in created the follwoign install.xml, which created three versions of singlepages with three different paths
<?xml version="1.0"?> <concrete5-cif version="1.0"> <page name="Shows" path="/shows" filename="/applications/single_pages/shows.php" pagetype="" description="" package="istand_tv_tools"></page> <page name="Episodes" path="/shows/episodes" filename="/applications/single_pages/shows/episodes.php" pagetype="" description="" package="istand_tv_tools"></page> <page name="Shows2" path="/shows2" filename="/single_pages/shows.php" pagetype="" description="" package="istand_tv_tools"></page> <page name="Episodes2" path="/shows2/episodes2" filename="/single_pages/shows/episodes.php" pagetype="" description="" package="istand_tv_tools"></page> <page name="Shows3" path="/shows3" filename="/shows.php" pagetype="" description="" package="istand_tv_tools"></page> <page name="Episodes3" path="/shows3/episodes3" filename="/shows/episodes.php" pagetype="" description="" package="istand_tv_tools"></page> </singlepages> </concrete5-cif>
bizarrely (to me), the first one, which actually has the functional filename to the php file, generates a page with no template.
the last two, with have broken filenames, generate working pages with templates!
If I add these single pages through the Add SinglePages only the last one works, which tells me that the ‘filename’ C5 expects is not the actual filename/location but the routing ‘filename’.
so, problem solved. However, it would be convenient if the package installer returned error messages. I mean, if the “add single page” returns an error, than I would assume the SinglePage::add() function called somewhere inside the importContentFile() function would also see an error.