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

Views: presenting in one column data from two different content types (CCK)

I'm trying to present in one column (called "street") data being stored in two nodes of different content type (CCK). Both nodes have the text field "street" but they are different content type (one may be created by authenticated user, another one only by administrator). I want administrator to be able to see both streets in the very same column of the table view. Is it possible? I tried Views and Fusion but it doesn't work this way. Any clue?

creating sub page of the project

hi to all,
in every theme the page.tpl.php is a main page...
i want to create a subpage that is
about us -
contact us -
these at all sub pages to my project..
in main page(page.tpl.php i have different pictures)
in sub pages (i want to have different pictures)
how ll i create sub the pages...
http://localhost/myproject/aboutsus/
http://localhost/myproject/contactus/

image tag

how could i put image of the user at the submitted by link?

Q: Is it possible to override module functions kinda like template.php?

I have been making great use of template.php lately for theme functions and I love it. However, in some cases I find that modules do not provide a function name preceded with "theme_" therefore limiting me from editing it in template.php. Is there some type of way to override a theme even if it doesn't contain theme_ at the beginning?

Thanks!

How do I create nodes from my cron-called xml-parser?

I'm trying to write an xml parser that creates event nodes, and perhaps other types of nodes too. This script should get called by cron every so often to insert or update nodes, and therefore not require a logged in user. How would I do the actual node insertion though? Say that I know that I've found my event title, start time etc., do I use event_nodeapi to create it? How exactly? Or do have to do a database insert/update...?

Announce: CCK support for import_html

Due to popular demand, I've documented how this can work.
Technically most of the functionality was there under the hood already, but now it's been tweaked to recognise CCK fields explicitly.

Import HTML - Import to CCK

The base functionality supports placing found content into the $node->body
field, not naturally into any arbitrary CCK fields, but this is also
possible.

If you have a CCK node with (eg) fields:

field_text, field_byline, field_image

and your input pages are nice and semantically tagged, eg

<body>
  <h1 id='title'>the title</h1>
  <div id='image'><img src='this.gif'/></div>
  <h3 id='byline'>By me</h3>
  <div id='text'>the content html etc</div>
</body>

A mapping from HTML ids to CCK fields will be done automatically, and
the content should just fall into place.

  $node->title = "the title";
  $node->field_image = "<img src='this.gif'/><";
  $node->field_byline = "By me";
  $node->field_text = "the content html etc";

In fact, ANY element found in the source text with an ID or class
gets added to the $node object during import, although most
data found this way is immediatly discarded again if the content type
doesn't know how to serialize it.
A special-case demonstrated here prepends field_ to known
CCK field names. Normally they get labelled as-is.

Pages

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