|
|
Hi,
I've used the following guidelines to create a new content item based on the default 'File' type. This works nicely, except when listed under the the view or contents tab of a folder, the URLs of the uploaded items for the new content type are missing the '/view' suffix. This means that clicking on a listed item does not go to a view display of the item but instead attempts to open/download the file. I'd be grateful for any suggestions on how to append '/view' to the URLs of the listed items. Thanks, Richard Guidelines: http://www.uwosh.edu/ploneprojects/docs/how-tos/how-to-add-an-item-to-the-add-new-menu |
|
Marcos Romero |
|
|
Hi, Richard
Check chapter 5 of Plone 3 Products Development Cookbook. Fortunatelly, there's an online free version of it in Packt website: http://www.packtpub.com/article/creating-custom-content-type-paster-plone-3 See the section "Changing the base class in paster content types". You have to modify the View action in your content type xml file. Regards
Marcos F. Romero
[hidden email] On 05/03/2012 1:12, richardc wrote: Hi, I've used the following guidelines to create a new content item based on the default 'File' type. This works nicely, except when listed under the the view or contents tab of a folder, the URLs of the uploaded items for the new content type are missing the '/view' suffix. This means that clicking on a listed item does not go to a view display of the item but instead attempts to open/download the file. I'd be grateful for any suggestions on how to append '/view' to the URLs of the listed items. Thanks, Richard Guidelines: http://www.uwosh.edu/ploneprojects/docs/how-tos/how-to-add-an-item-to-the-add-new-menu -- View this message in context: http://plone.293351.n2.nabble.com/Creating-new-content-type-based-on-the-default-File-type-appending-view-to-listed-items-in-folder-tp7343494p7343494.html Sent from the General Questions mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users |
|
Raphael Ritz-3 |
|
|
In reply to this post by richardc
On 3/5/12 5:12 AM, richardc wrote:
> Hi, > > I've used the following guidelines to create a new content item based on the > default 'File' type. This works nicely, except when listed under the the > view or contents tab of a folder, the URLs of the uploaded items for the new > content type are missing the '/view' suffix. This means that clicking on a > listed item does not go to a view display of the item but instead attempts > to open/download the file. > > I'd be grateful for any suggestions on how to append '/view' to the URLs of > the listed items. In ZMI look for portal_properties -> site_properties There should be a property called typesUseViewActionInListings Add your type to the list there. Does that make a difference? Raphael > > Thanks, > Richard > > Guidelines: > http://www.uwosh.edu/ploneprojects/docs/how-tos/how-to-add-an-item-to-the-add-new-menu > > -- > View this message in context: http://plone.293351.n2.nabble.com/Creating-new-content-type-based-on-the-default-File-type-appending-view-to-listed-items-in-folder-tp7343494p7343494.html > Sent from the General Questions mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > Try before you buy = See our experts in action! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-dev2 > _______________________________________________ > Plone-Users mailing list > [hidden email] > https://lists.sourceforge.net/lists/listinfo/plone-users ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Plone-Users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/plone-users |
| Powered by Nabble | Edit this page |