deltavik Posted August 2, 2016 Posted August 2, 2016 Hey guys, I discovered PW this weekend and have been playing with it. Loving it so far. I am a Wordpress developer, and PW seems much more natural and organized in comparison. For my test-drive, I am building a site on a simple use case of building a news website. A writer will write stories and tag them under "categories" and "tags." If I were to do this in WP, I would use WP's taxonomy to tag stories in tags and categories. To realize this in PW, this is my plan: Create a page for "story" that contains two repeater fields -- one for "tag," and other for "category." I would like to add description and image to each tag and category. The question is: how can I have fields for tag and category, which themselves are fields? OR, is there another, better way? Maybe instead of creating fields for tags and categories, I can create pages for tags and categories? And then somehow link these two pages as "fields" in the story page? What would you advise? Ideally, I would like to have a user experience of a typical taxonomy entry for, like this: taxonomy entry on this forum But I don't think it is possible in PW. thanks Vikram
adrian Posted August 2, 2016 Posted August 2, 2016 Hi @deltavik and welcome to the forums. Perhaps this module might suit your needs: http://modules.processwire.com/modules/inputfield-chosen-select/ There is another similar one, but it escapes me at the moment.
fbg13 Posted August 2, 2016 Posted August 2, 2016 You can use the page field type to relate pages and use them as taxonomies/terms.
deltavik Posted August 2, 2016 Author Posted August 2, 2016 Thanks @adrian The link you suggested is almost what I wanted to do. However, for the module to work, I will need to have the tag and category pages already created. But I want to be able to create new tags while I am creating a page.
deltavik Posted August 2, 2016 Author Posted August 2, 2016 I think I might have found something: new page from inputfield
Robin S Posted August 2, 2016 Posted August 2, 2016 (edited) 19 minutes ago, deltavik said: The link you suggested is almost what I wanted to do. However, for the module to work, I will need to have the tag and category pages already created. But I want to be able to create new tags while I am creating a page. From the module readme... Quote Use TAB to create new Pages with the currently typed name. And you can also use the core Autocomplete inputfield to add pages on-the-fly providing the conditions on the "Input" tab are met... Edited August 2, 2016 by Robin S Added info on Autocomplete inputfield 4
deltavik Posted August 2, 2016 Author Posted August 2, 2016 Bingo. That hit the spot. However, I had to press enter, not tab, to make it work. I will try it in another browser to check tab vs. enter situation...but in any case, it solves my problem. thanks
szabesz Posted August 3, 2016 Posted August 3, 2016 @deltavik Hi, In case you are interested, there is a recently "released" Site Profile (by @clsource) which has tags already implemented (though no categories, but they can be added in a similar manner). This is just one example, but a good one: 3
deltavik Posted August 3, 2016 Author Posted August 3, 2016 This looks interesting. I am going to try it. thanks, 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now