I'd like to use panels to do things like add text to the top of the /forum page, but I don't see how to add this as content into the panel. I'm guessing it can't be done, or can't be done easily. Can someone
a. Tell me how to do it
b. Suggest another strategy.
To add text above the page you might want to look at just using blocks. If you have a region (or add a region) above the content region or put a block in the content region you can usually achieve this. You can then change the settings for the block to only show on specific pages.
I hope this helps.
-Steve
Steve Kessler Denver DataMan 303-587-4428 Sign up for the Denver DataMan Free eNewsletter
-----Original Message----- From: Christopher M. Jones [mailto:cjones@partialflow.com] Sent: Wednesday, February 04, 2009 10:05 AM To: support@drupal.org Subject: [support] using panels to template system pages?
I'd like to use panels to do things like add text to the top of the /forum page, but I don't see how to add this as content into the panel. I'm guessing it can't be done, or can't be done easily. Can someone
a. Tell me how to do it
b. Suggest another strategy.
That's plan B. Thanks much for your suggestion. I was hoping that there would be a way to do this with panels, because that would be useful in other applications. For example, I'd love to bring group forums into the group home page.
Steve Kessler wrote:
To add text above the page you might want to look at just using blocks. If you have a region (or add a region) above the content region or put a block in the content region you can usually achieve this. You can then change the settings for the block to only show on specific pages.
I hope this helps.
-Steve
Steve Kessler Denver DataMan 303-587-4428 Sign up for the Denver DataMan Free eNewsletter
-----Original Message----- From: Christopher M. Jones [mailto:cjones@partialflow.com] Sent: Wednesday, February 04, 2009 10:05 AM To: support@drupal.org Subject: [support] using panels to template system pages?
I'd like to use panels to do things like add text to the top of the /forum page, but I don't see how to add this as content into the panel. I'm guessing it can't be done, or can't be done easily. Can someone
a. Tell me how to do it
b. Suggest another strategy.
Can somebody advise how I can run a conversion from one set of (important) CCK fields into categories which would allow a user to search on movie nodes in groups? I have tried to set up categories but I don't see how I tie them in with CCK nodes.
Basically I've set up a new content type using CCK ("Movie") with numerous fields. There are over 5,000 nodes containing "movie" data.
Some of these fields have keywords which I need to link to and search, but I am unsure how to do this.
I also need to add an advanced search function to search the "movie' cck but again I can only find the standard search block. This search function would allow the selection of a "type" and then user input of the search required in relation to the selected search criteria.
Can anybody help me with this?
Hi Marc,
an easy way to search CCK fields would be through Views. You can "expose" a filter on those CCK fields that would allow you to search them.
If you want to link to search result pages that contained a specific value in a CCK field you could create the URLs by using the Arguments functionality of Views -- even if it is not quite as clean as the categories functionality of Drupal.
Views with a bit of customisation would allow you to does specific search blocks, etc.
There is a more sophisticated way through CCK Facets and Faceted search that might work in your case but I've never used those myself.
Finally, if it is just a question of certain fields being more suitable as taxonomies/category terms and then write/get someone to write for you a small script that goes through all your nodes and assigns them taxonomy terms based on the value in the CCK field. Then you can use the full power of Drupal's taxonomy system.
Hope this helps,
best,
Ronald
Marc Morris wrote:
Can somebody advise how I can run a conversion from one set of (important) CCK fields into categories which would allow a user to search on movie nodes in groups? I have tried to set up categories but I don't see how I tie them in with CCK nodes.
Basically I've set up a new content type using CCK ("Movie") with numerous fields. There are over 5,000 nodes containing "movie" data.
Some of these fields have keywords which I need to link to and search, but I am unsure how to do this.
I also need to add an advanced search function to search the "movie' cck but again I can only find the standard search block. This search function would allow the selection of a "type" and then user input of the search required in relation to the selected search criteria.
Can anybody help me with this?
Hi Ronald,
I'm confused about this as I've been told that Views isn't the way to go with this.
I'm told that CCK fields are already mapped to the search so what I'm trying to do doesn't make an awful lot of sense, and that the better way to search stuff is through categories (taxonomy), hence it being suggested that I run a conversion from one set of CCK fields into categories which would allow a user to search on movie nodes in groups.
I'm new to Drupal and to say I'm confused is an understatement.
Marc
On 5 Feb 2009, at 17:28, Ronald Ashri wrote:
Hi Marc,
an easy way to search CCK fields would be through Views. You can "expose" a filter on those CCK fields that would allow you to search them.
If you want to link to search result pages that contained a specific value in a CCK field you could create the URLs by using the Arguments functionality of Views -- even if it is not quite as clean as the categories functionality of Drupal.
Views with a bit of customisation would allow you to does specific search blocks, etc.
There is a more sophisticated way through CCK Facets and Faceted search that might work in your case but I've never used those myself.
Finally, if it is just a question of certain fields being more suitable as taxonomies/category terms and then write/get someone to write for you a small script that goes through all your nodes and assigns them taxonomy terms based on the value in the CCK field. Then you can use the full power of Drupal's taxonomy system.
Hope this helps,
best,
Ronald
Marc Morris wrote:
Can somebody advise how I can run a conversion from one set of (important) CCK fields into categories which would allow a user to search on movie nodes in groups? I have tried to set up categories but I don't see how I tie them in with CCK nodes.
Basically I've set up a new content type using CCK ("Movie") with numerous fields. There are over 5,000 nodes containing "movie" data.
Some of these fields have keywords which I need to link to and search, but I am unsure how to do this.
I also need to add an advanced search function to search the "movie' cck but again I can only find the standard search block. This search function would allow the selection of a "type" and then user input of the search required in relation to the selected search criteria.
Can anybody help me with this?
-- [ Drupal support list | http://lists.drupal.org/ ]
Marc Morris Cult Movie Forums http://www.cultmovieforums.com/
This is a bit hackish but I've don'e this successfully using panels2 by using custom PHP code. It involves being able to read a module's menu_hook though and write a little PHP, and being careful about security (cause you can bypass menu security this way.
The basic outline:
1. Determine the function being called in the menu_hook, 1. Create a minipanel (just to abstract the logic and security) 2. Ad a snippet of custom PHP code that calles the function. 3. Be extra careful to set security on this minipanel as it bypasses the menu security mechanism.
In your example, the forums page could be loaded into any Panel by including the following custom php pane in your mini-panel.
$block->content = forum_page();
This mini-pane can then be inserted into any block you have. Here's a more intense example where I'm passing context data to the php custom page to add the view cases page to a form that passes node id into the function being called.
$block->content = casetracker_cases_overview($context->data->nid,'state:6');
Your question has sparked some interesting ideas for me with regard to creating a module that does this more generically based on the data that's already in the menu system :). Especially once we get to drupal 6 and wildcards in the path. Wow the possibilities are endless.
Hope this helps.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Christopher M. Jones Sent: Wednesday, February 04, 2009 8:57 PM To: support@drupal.org Subject: Re: [support] using panels to template system pages?
That's plan B. Thanks much for your suggestion. I was hoping that there would be a way to do this with panels, because that would be useful in other applications. For example, I'd love to bring group forums into the group home page.
Steve Kessler wrote:
To add text above the page you might want to look at just using blocks. If you have a region (or add a region) above the content region or put a block in the content region you can usually achieve this. You can then change the settings for the block to only show on
specific pages.
I hope this helps.
-Steve
Steve Kessler Denver DataMan 303-587-4428 Sign up for the Denver DataMan Free eNewsletter
-----Original Message----- From: Christopher M. Jones [mailto:cjones@partialflow.com] Sent: Wednesday, February 04, 2009 10:05 AM To: support@drupal.org Subject: [support] using panels to template system pages?
I'd like to use panels to do things like add text to the top of the /forum page, but I don't see how to add this as content into the
panel.
I'm guessing it can't be done, or can't be done easily. Can someone
a. Tell me how to do it
b. Suggest another strategy.
Indeed it does help! Tremendously. I knew there must be something like this. Leider, I'm still on my first steps to module development, still learning the api, or I would offer to help on such a module. Thanks so much.
Metzler, David wrote:
This is a bit hackish but I've don'e this successfully using panels2 by using custom PHP code. It involves being able to read a module's menu_hook though and write a little PHP, and being careful about security (cause you can bypass menu security this way.
The basic outline:
- Determine the function being called in the menu_hook,
- Create a minipanel (just to abstract the logic and security)
- Ad a snippet of custom PHP code that calles the function.
- Be extra careful to set security on this minipanel as it bypasses
the menu security mechanism.
In your example, the forums page could be loaded into any Panel by including the following custom php pane in your mini-panel.
$block->content = forum_page();
This mini-pane can then be inserted into any block you have. Here's a more intense example where I'm passing context data to the php custom page to add the view cases page to a form that passes node id into the function being called.
$block->content = casetracker_cases_overview($context->data->nid,'state:6');
Your question has sparked some interesting ideas for me with regard to creating a module that does this more generically based on the data that's already in the menu system :). Especially once we get to drupal 6 and wildcards in the path. Wow the possibilities are endless.
Hope this helps.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Christopher M. Jones Sent: Wednesday, February 04, 2009 8:57 PM To: support@drupal.org Subject: Re: [support] using panels to template system pages?
That's plan B. Thanks much for your suggestion. I was hoping that there would be a way to do this with panels, because that would be useful in other applications. For example, I'd love to bring group forums into the group home page.
Steve Kessler wrote:
To add text above the page you might want to look at just using blocks. If you have a region (or add a region) above the content region or put a block in the content region you can usually achieve this. You can then change the settings for the block to only show on
specific pages.
I hope this helps.
-Steve
Steve Kessler Denver DataMan 303-587-4428 Sign up for the Denver DataMan Free eNewsletter
-----Original Message----- From: Christopher M. Jones [mailto:cjones@partialflow.com] Sent: Wednesday, February 04, 2009 10:05 AM To: support@drupal.org Subject: [support] using panels to template system pages?
I'd like to use panels to do things like add text to the top of the /forum page, but I don't see how to add this as content into the
panel.
I'm guessing it can't be done, or can't be done easily. Can someone
a. Tell me how to do it
b. Suggest another strategy.