Page_selector in Dashboard
Permalink
I'm making an application that manages a list of projects - both finished and in progress. Each project has an image, a link to a project page and a status (finished or unfinished). The interface is a single page added to the Dashboard. The corresponding block shows a gallery of either finished or unfinished projects.
In the interface I put a control to pick an image from the File Chooser, which works as expected. And there is a control to select a page from the sitemap - the selectPage function from page_selector.php.
If I click the "Page Chooser" control I expect a dialog to pop up in which I can pick a page. Much like it does in the Page List interface when one wants to list child pages from a different page. However the dialog doesn't show. Instead I get redirected to an incomplete Sitemap in which nothing can be picked because the page tree doesn't show.
Is the page_selector not fit for use in the Dashboard or am I overlooking something?
In the interface I put a control to pick an image from the File Chooser, which works as expected. And there is a control to select a page from the sitemap - the selectPage function from page_selector.php.
If I click the "Page Chooser" control I expect a dialog to pop up in which I can pick a page. Much like it does in the Page List interface when one wants to list child pages from a different page. However the dialog doesn't show. Instead I get redirected to an incomplete Sitemap in which nothing can be picked because the page tree doesn't show.
Is the page_selector not fit for use in the Dashboard or am I overlooking something?
maybe the same problem like here? : http://www.concrete5.org/community/forums/customizing_c5/user-picke...
I have an application very much like the Advertising System, without the logic for counting clicks. In the Advertising System an ad links to a location that can be in your site or anywhere else. The URL has to be typed into a textbox. In my application I'd like to be able to link only to pages within my site by way of a pageid. More or less like the way you can select a top-page in the Page List block.
I just copied that page selector "widget" from the Page List block into my application, which is a single page in the Dashboard. But for reasons beyond me the widget doesn't bring up a sitemap dialog, but loads a new page without a sitemap.
The question of course being how to provide a means to select a page from the sitemap on a single page in the Dashboard.
Please help.