Where in the Openpublish World are 'Articles' views, and 'Articles' context?!?

Events happening in the community are now at Drupal community events on www.drupal.org.
pigot's picture

Thanks to those who have assembled this Drupal package, as this rich semantic information framework has impressive possibilities.

I've to conceed, I'm not a developper nor a tech-geek, but a french journalist (excuse my poor english writing knowledge). My interest in Openpublish is driven 'cause it's close to main needs of a digital publication and, go hundred steps farther.

I've tried to put hands on OP 1.5-309 with a very few results. For yesterday, I've installed and tried to customize OP 1.6-357, and it's really interesting, even amazing in some ways.

The lack of documentation makes the discovery of OP painfull.

  • It takes me few nights to understand 'menu sections' (Health, Politics, etc.) was not yet implemented and not the main preoccupation for a Drupal based project.

  • Using OP 1.5-309, I've undestood that 'views' give a way to gather nodes informations but, I've not been able to found a way to put those informations on stage (in fact, screen).

  • Considering informations displayed on the page, I've not undestood how it belongs to a path as /articles/x-y-z... as I guess it would be usefull to qualify the sections with similar path /health/a-b-c, /politics/k-g-b, etc.).

So, I've cloned 'article' content form to create similar 'business' form, and clone 'Articles' view to create 'Business' views linked to 'business' content form, and '/articles/Business' path to be able displaying informations by using 'Business' entry on the main menu. It works but, i've been unable to build a composite 'business page' with ads, banner, etc. as I've not understood how to link content-view with template...

So come OP 1.6-357... TaaDaa !!!

Installation work well, except time necessary to run the two first parts that take about 6 to 10 minutes each (ok, I've to tell I don't have any Debian/Linux config. under hands, so I'm using M$-Windows with WampServer... pretty bad I gess).

So, I've discovered Context... It change everything.

My goal at this time is to implement contents relative to menu sections using the basic templates available, and adapt in a second step, the 'page(s)' template for beeing able to use the 'package' content.

The 'cloning' approach seems efficient for the basic sections (business, health, politics, etc.). Beeing unable to create path for business, health, etc. on a runnig OP installation, I've modified 'openpublish.profile' (in 'profiles/openpublish') to add new variables in the pathauto section, as:

variable_set('pathauto_node_business_pattern', 'business/[title-raw]');

I've also cloned the 'article.inc' file (in 'profiles/openpublish/cck'), and changed the inside references to 'article' content form, to get business.inc, health.inc, and so-on... I've also cloned node-article.tpl.php template in the /sites/all/themes/openpublish_theme/node directory to get node-business.tpl.php, and so-on...

But, I've not been able to found views, and corresponding context files to clone...

Proceeding to a classic installation, I got the corresponding 'content' forms, belonging to corresponding /articles/xyz... path, ready to display in corresponding node templates.

By creating new cloned views, and context through the OP 1.6-357 admin-ui, it works. Except, Advanced-Help reports these new views, and context are only available as data records in the database, and not as stand-alone files outside.

Is it better or worse?

Is there any way to have these views, and context ready for installation by cloning files and/or instructions inside some files of the OP 1.6 distribution?

Is it a totaly stupid way to proceed, in complete opposition of the Drupal philosophy?

And anyway, good or ugly, I hope helping other OP 1.6 explorers by detailling this approach of what is possible to (not) do...

Regards,

Thierry

Comments

Thierry, thank you for the

irakli's picture

Thierry,

thank you for the kind words and sorry for the lack of documentation, we are working on trying to fix that.

Honestly, cloning content types to make different sections seems like a pretty bad idea, since it is a very non-Drupal way of achieving what you are trying to achieve. A much more Drupal-way of doing it is to create a new vocabulary at: http://yourdomain.com/admin/content/taxonomy/add/vocabulary, associate it with Article content type and tag content with the names of different sections (e.g.: Business etc.). Then you can use the existing Articles view to filter by a term in the newly created vocabulary.

Since OpenPublish is a Drupal distribution and heavily uses Drupal best-practices, it would be a time well-spent if you got one of the Drupal books, especially one that has good coverage of Views and CCK.

.............................................
http://twitter.com/inadarei

I've bought a book about

pigot's picture

I've bought a book about Drupal, but unfortunately there's not so much references available in France, and the one I've found is too basic. I suppose, I have to consider buying a book in english somewhere on the Net ('Drupal 6 Site Builder Solution' exists as e-book, is it a good one?).

I guess Taxonomy, is a way to tag content with subject oriented term(s). I've to understand how I can use this to link 'tagged' contents with menu entries. I need to know if it's or not, important to have datapath in the url (/articles, /business, etc.), and how to create these references after installation if needed (the prior install 'cloning' way is a bit monolithic, I agree). I need also to understand how to manage ads, etc., etc.

And farther, there so much more to explore, with Calais and semantic function results...

Regards,

Thierry

I would recommend Using

irakli's picture

I would recommend Using Drupal book by Angela Byron, Jeff Robbins and Nathan Haug. I think it has a pretty good coverage of Drupal basics, including Views and CCK: http://bmu.li/sm3 There's another book by Earl and Lynette Miles: Drupal Building Blocks http://my.safaribooksonline.com/9780321620354 that looks like will be a wonderful coverage of the same subjects, but it's not published yet.

.............................................
http://twitter.com/inadarei

I like Pigot's idea

Tran's picture

Pigot's plan is how I planned to do it.

OpenPublish

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week