how to create custom URL in drupal 7 - drupal-7

http://example.com/siteadmin url addresses
<?php print $messages; ?>
<?php print drupal_render(drupal_get_form('admin_log')); ?>
Admin Login
how to set the url of the custom node in drupal 7 2
0
Drupal 7: how to create hierarchical node structure 3
0
How do you add a taxonomy field to a custom entity in Drupal 7
3
How do I save custom node types in Drupal 7 2

your question is pretty vague. but here goes
to create a custom url use hook_menu
to create url alias for a custom content type you can use url alias
For hierarchical nodes you could use or Drupal's menu system or
Drupal's taxonomy to make such relations. Or you can also use the
Relation module
What do you mean by custom entity do you mean entities defined in hook_entity_info?
or content types created through admin

Related

Drupal 7 - Custom Field for radion button with images

In Drupal 7, is it possible to add custom field like below in article node?
These values should be fetched from taxonomy terms
Of course it is possible.
What you need to do is to create widget for term reference or entityreference field(if you have module entityreferenceinstalled).
You can read about how to do it here.

Drupal 7: Adding content/nodes from custom content type pages to another page

I'm working on a Drupal site an need to implement the following:
I have created an about us page template (page--about.tpl.php) and a custom content type for the about us page and linked the 2 using suggestions. I also have a custom content type for staff profiles that I need to add on the about us page in a tabbed format.
I can't seem to find a way to get the staff content to display in the about us page. I would ideally like it to render it the same manner as blog posts would display in a blog page.
So my question is, what code do I use to render all the nodes of the staff profiles content type in the about template page?
p.s I'm a bit of a Drupal noob, done a lot of reading but come up empty on this one.
If you already created content type About us (that is what i understood from mockup and explanation) then maybe you could use Views with EVA. That will enable you to have view as field in content type.
You can set it up with manage display or print it in template as all other fields. For example:
<?php print render($content['your_view_entity_view_1']); ?>
Other way would be to embed view in template. For example:
<?php print views_embed_view('your_view', 'block'); ?>
You can use the excellent Views module to create a block to list all your staffs.
Then you need to place the block that you had created with the help of view module in about-us page.
The Views module will give you suggestions to about which template to use.
EDIT: After the op provided the following image.
After you create a view to show all the Team member nodes you could simply print the view in your about us specific page template using following code.
$view = views_get_view('view name');
print $view->render('display_id');
Another option to do the same thing is, make blocks for all the content, viz. The Firm, The Team, Awards, Technonogly, Services and use quicktabs to display the content.
Yet another option to show a view as a field for a node is use EVA
Going the quicktabs way you can provide a lot of flexibility of showing teaser in about us page and leading to details about the same. For example each award can be a node in itself.

Drupal 7 expanding fields

I have a field in a cms called 'services' the services is a lsit of checkboxes with the values
1|digital
2|web
3|print
4|apps
The issue is each of the options has a related url. Is there way to link a url to a 'service' or am I looking at taxonomy to solve this issue?
You need to use a taxonomy. A select list is simply a key/value pair with no other additional data. If you build a new taxonomy, you can either use the taxonomy URL for your purpose or you can add a Link field and give each term a specific URL and tie that in somehow, maybe through Views or a custom display.

Drupal 7 - Blog Module - Categories?

Is it possible to create categories or tags for the Drupal 7 Blog Module.
I have tried creating a new taxonomy, but can not select it as a new field for the content type. Is there an easier way?
You need to create a new field. Make it type "Term Reference" and choose which taxonomy applies. It's not a shared field.
For Drupal 6 or 7, You can visit here too

How to move content to drupal 7 region?

I have created a region named "footer" in my drupal 7 template.
I have created a content type named "footer-article".
I have created a block called "footer-block".
What I want to do is:
whenever I create an article of "footer-article" content type
I want it to automatically reside in the "footer" region in all of my pages/ or some of the pages?
What is the most efficient and simplest way to do it?
because I was thinking that I always need to create new blocks and put article inside this block in order for me to position it in my desired region?
I am a newbie in drupal 7
Thanks for your help.
Install the views module. Always install the views module.
http://drupal.org/project/views
It will allow you to make a list of a content type, which you can then export as a block and add to your region. This will automatically update the block when ever you add a new "footer-article".
You can set the view to show full posts, teasers or certain fields.
It's the best module for Drupal in my opinion and is a must have for any Drupal sites.

Resources