This forum is for module development and code related questions, not general module support. For general support, use the Post installation forum.

Advanced Aggregator Module

I just recently got serious about Drupal after leaving Joomla ... Drupal rocks!!!

The only feature I am disappointed in (and probably just because of my needs, not because of the module) is the aggregator module.

I would like an aggregator similar to Joomla's in that the aggregator block shows the link (which links back to the news supplier) ALONG WITH the text supplied with that link. Joomla allowed for (and were able to customize the choices) the display of the name of the syndicator, their logo image if supplied, and images related to the news feature. I really do not want my readers to click on a link, simply to be taken to another local page to read one line of text and have to again click on a link to be taken to the full story.

Since I know I have a tendency to ramble, maybe I should show graphically what I want.

A block which shows:

-- Name of Syndicator (if option selected) --
-- Image of Syndicator (if option selected) --

-- image with story --
-- link to full story at syndicator site --
-- text supplied by syndicator --

-- link to full story at syndicator site--
-- text supplied by syndicator --

-- link to full story at syndicator site --
-- text supplied by syndicator --

...

End Block

The number of links should be selectable too (which is how it is now)

Is there such a module out there, or is someone out there able to edit the aggregator module to do that? I am proficient with php, but need to learn the mechanics of Drupal yet.

CCK - using field-based and node-based templates together?

hello everybody,

I am using the CCK module and have a question regarding theming: is it possible to use field-based templates together with node templates?

I have a content-type "content_test" which has a field called "field_test".
Now I want to theme the field "field_test" and therefor have created a template file called "field-field_test.tpl.php". I also have template "node-content-test.tpl.php" for general styling.

Now, when I call $field_test[0]['view'] in "node-content-test.tpl.php" my customized field template does not seem to be called.

debugging php module errors

Hello all,
i'm new in drupal, and i'm developing my "hello world" module.
The main problem i'm experiencing is that when i do a php mistake such a missing ";" or an unclosed "{" i can't see the error anywere,

if this error is in the help hook, the admin page of drupal wich displays all modules just goes blank, no error is given in the page neither in the event log of drupal.

if the error is in the rendering of a page, the page will display blank too

Am i doing something wrong or there are debugging or testing methods wich i unknow.

hook_validate modify node?

I'd like to insert some custom content into my custom node in the hook_validate function, but when I modify node in that function the changes do not get saved and they do not show up in the node passed to hook_insert. Here's my code:

User Profile on multiple pages.

Is there a way to get user profile on multiple pages like

Page 1. Title : "Contact Information" will have fields like First Name, Last Name Middle Name etc...

On successfull submitting Page 2 appears

Page 2. Title : "Current Position" will have fields like Profession, Title , Institution etc...

Wrapper for a collection for form elements

OK.. I am neither a Drupal or PHP wiz, but I have made some progress with the forms API, and form_alter, but I still cannot figure out how do this, and am hoping a drupal guru can solve it.

I want to put a div around only SOME of the form elements in the $form array.

Let's take for example the collapsing fieldsets used for various admin settings in many modules.

I have a "tweaks.module" where I can do a form_alter and modify individual forms and their child elements. That's pretty easy.

But I want to wrap N number of fieldsets (or other elements) in a div with a custom class in the many nodes that have settings.

So I need to know where and how I hook or hack the array of elements and add this parent container element. I think I can flag the elements I want in the set by settign a flag via form_alter like $form['title']['in_group'] = 'true' for each element i want to include in the set, but....

where would I then read these values and surround of them with HTML source that the rendering system/forms API won't choke on? And how?

What I want to end up with is:


<form  id="some_form">
 <div class="my-class">
 <fieldset>
 </fieldset>
 <fieldset>
 </fieldset>
</div>
  
<fieldset>
   Not included in wrapped set
</fieldset>

</form>

Anyone have a strategy for this?
If I sound clueless, I largely am. Be gentle with me :)

Pages

Subscribe with RSS Subscribe to RSS - Module development and code questions