Sub menu links will not display in Main Menu

I have created a theme using Drupal's stark base theme. After adding a few pages and their links to the main menu, I am unable to get the children links to display. Any suggestions? Is this a know issue? I have seen several similar problems but no solutions. Thanks in advance.

hook_menu() path to file

Is it possible to define a callback that links directly to a file?

For example, when someone types 'http://www.mywebsite.com/myfile' into the browser I want it to link directly to: /path/to/some/file. If that file is a .exe for example, I want it to download as if they typed in the path to the file directly.

Thanks!

Frankie

Tags for INDIVIDUAL photos?

Hello there!

I'm in the process of building a photography/videography site with Drupal 7. Therefore, tagging individual photos/videos is quite important in my approach (as I'm using Views 3.x and Views Slideshow 3.x to display photo/video content).

CURRENT CHALLENGES:
Want to be able to easily upload multiple images (critically NOT in the same node).
Need to be able to individually and mass tag media items (ie. photo/video/etc).

I HAVE created a new content type "Media Content". But I DON'T want to "Add Content > Media Content" for every individual photo/video. It seems silly and obnoxiously redundant as it stands. I understand that the module "Taxonomy Images" existed for Drupal 6 to individually tag photos, but curious what the approach is in Drupal 7 because I'm at a loss. I know some modules were included into Drupal 7 core, but I don't have much experience with Drupal 6, so wrapping my mind around Drupal 6 Forum topics regarding this issue is unfortunately out of my league. I wish I was skilled enough to sort my own solution, but I'm not there yet. Thinking/hoping there is a Views solution to this, but I'm struggling to figure it out.

drupal_http_request() request for XML

I tried to make a HTTP GET request to a $url, which returns XML. I used drupal_http_request($url)->data, the response body I got is the XML without tags. Am I using the wrong method to request XML or used wrongly?

Problem linking comments to nodes programmatically

Hi,

I'm importing pieces out of html code into Drupal nodes. The pieces consist node title, body, tags etc. and that works. I also have comments in html code that need to be imported as comments into the node and here I have issues with.
This is the code I currently have:

Cannot add content as no content types seen

I have just created a site and populated it with content but now when I try to add content I get a message saying "you have not created any content types. Please create a content type to proceed" but all the content types are there when I go to structure. I have checked permissions and everything seems correct. How can I switch them on again. Any Ideas please.

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x