I would like to submit all the custom code I used to integrate the front page news rotator that I'm using. It took me a couple days to set it up. It would include the custom css to fit the openpublish template, a CCK content type which I can export, a view which I can export, and instruction how to add the code to page.tpl.php and openpublish.info to create a new region.

However, I did pay $17 for the news rotator template that I used so I can't make that one available. I did start with a different one that was free to use. I think that it's still on my site. If not I can pull it from a backup and perhaps make the other one available to the people who maintain and developed the dynamic display block module.

It's a very nice feature to the OpenPublish template, it looks great, drives people to that content, and viewing the site as a crawler or robot puts that html first.

Comments

Adam S’s picture

I'm moving my discussions that are not support related to groups.drupal.org/openpublish. I just copied this thread. http://groups.drupal.org/node/38806

irakli’s picture

Thank you, Adam. We love code contributions. Issue queue is probably the best way to submit such contributions, for now.

It looks like your code could make a perfect Feature (with capital letter, as in Drupal Feature) for OpenPublish. If we get several more of those, we should probably start a section for OP Features on the website.

Thank you!

Adam S’s picture

I was going to install the new openpublish installation profile in order to test the front page rotator and my article tpl.php files so I could share them however I can't get it to work on my XP WAMP stack or on the shared server that I use for development at a2hosting.

quikeg’s picture

Title: Making the front page rotator available for openpublish. » Make a custom region for openpublish.
Project: OpenPublish » Admin block
Component: Theme » Code
Assigned: Unassigned » quikeg
Category: feature » support
Priority: Normal » Critical

Hi.. I´m building a site wiht openpublish and I know OpenPubish contain predefined regions, but i need to add a new. I saw a post (POST THAT I SAW) which so something like this but the file template.php is not the same.

Thanks for answer

Adam S’s picture

Let me know what you want to do and I'll walk you through it.

Adam S’s picture

I'll actually try to help you using this. http://drupal.org/node/286219

@phase2 people. If I use this in some fashion http://drupal.org/project/views_arg_context with Custom Pages.module will I get the same effect as using panels to pass an argument (taxonomy term) as panels defines 'context'?

irakli’s picture

@quikeg,

new regions are added via .info file in the theme. But you should not be changing openpublish_theme, you should sub-theme it.

irakli’s picture

@adamsohn,

it looks like that module is for Views, so a little unsure where Custompage comes into play in your scenario? If you embed the said view with custompage, it should still work, yes.

chinnerz’s picture

Adam,

I am really interested in incorporating the front page news rotator into the site I am starting to build in OpenPublish 2.0. Can you give me an update on how this project is going or maybe walk me through this? I am new to working with regions and templates.

Adam S’s picture

I tried to make a feature with it but it was too complicated for me. I used the Dynamic Display Block module and followed the instructions on the profile page which are pretty straight forward. I also wrapped the two right hand columns on the front page in a div and then create a div block on top of the two columns with a class="clear". Also I needed to create a new region which I added to the new div block. In context I added the ddblock block to that new region and everything works.

Since views slideshow is native to OP you might want to research how to implement that instead.