Drupal: URL to create new book - drupal

I know how to add a childpage to an existing book, with an url like this:
/node/add/book?parent=9228
The last number is the book page's id.
How can I set it to create a new book?
Thanks.

I have looked at the code but as far as I can see, Drupal does not offer that possibility by default. I'm not 100% sure if this works, but you could try to install the prepopulate module and use this:
/node/add/book?edit[book][bid]=new

Related

How to add new setting fields to an existing setting page in Wordpress

For a new Wordpress plugin development, I would like to add few custom fields in the exiting setting page of COD.
The examples I have found so far, most of them are creating a new setting page and adding setting fields there.
However I want to use existing COD setting page and add few more fields on the same setting page. How to achieve that ?
Edit:
Please note that I am trying to achieve that by writing a Wordpress plugin. I understand that it requires to use various Wordpress functions like register_setting(), setting_fields(), add_setting_section() etc. But the sequence they should be called is confusing. It is helpful if a sample example is provided.
There are some important links that describe how to add new menu-page/submenu-page/options etc :
https://codex.wordpress.org/Administration_Menus
https://codex.wordpress.org/Creating_Options_Pages

How to make form in wordpress

I'm confuse how to make new form in Wordpress
this form can upload file too
and will be saved in new table I created
or can I use [Contact7] ??
if can, where I can change the table destination?
Try this:
You should use contact-form-7 wordpress plugin.
Take this from:
https://wordpress.org/plugins/contact-form-7/
You will get all solutions here.
--
Thanks

Drupal: How to override Advanced Forum topic list for one specific forum term

I'm using Drupal 7, and have the Advanced Forum module installed.
However, I want to show some Ubercart products in one section of the forum, called the Marketplace to make them more visible, and since users will be able to add their own products.
However, obviously in this section I want to show the forum topic list differently, including the price and other such fields.
Is there an easy way that I'd be able to do this, perhaps using Views? I'm really at a loss for what to do.
You should be able to just create a new View with a page display that displays things like you want them and then set the URL for the view to be the URL that is currently being used for the forum listing you want to override, so that the links to it still work without any additional work.
First of all, you should override the page template for one specific term by creating a new page like so:
page__forum_TERMID
To go more into details about what you need to show in this custom page, you may need to install the Devel & Theme Developer modules.
With Theme developer you will be able to inspect your Drupal output on various parts of the page in order to find out either which preprocess function or which template it originates from.
With Devel you will be able to output some of the variables you may need to act upon in order to generate your custom layout.
I would advise you to look at the implementation of the [Advanced Forum More Styles](http://drupal.org/project/advanced_forum_more_styles) in order to see how you could create your own Advanced Forum Style, which basically means a folder where you can store the various custom templates that will override the Advanced Forum templates.
Recently, I did something similar to what you're looking to achieve, I created a custom module to hold the various preprocess functions and that module contained a styles folder which was declared like so:
function YOURMODULENAME_ctools_plugin_directory($module, $plugin) {
if ($module == 'advanced_forum') {
return 'styles';
}
}
If you look at the styles in the AF module, you will see that they only override a few templates, so you may have to find the template you're looking for in the base style such as the "Naked" style.

Filter search by book page

Is there a module or some sort of native functionality available in Drupal that will allow search filtration by book page? (e.g. limit search to a particular section in the book)
Or some easy way to attach taxonomy to a book using page titles?
I think you need this module http://drupal.org/project/rules, with help of it you can create special set of actions when some action was performed in drupal, in your case this is 'Node created'. For example you can create new taxonomy term from title of a book page and then attach this new term to created page. Try it, Rules module can easy solve many problems like yours.

Limit frontblock to display articles/stories only in Drupal

I am new to drupal, so sorry for this noob question, but I was wondering how to display articles only in the central column. Currently there are also blog entries, etc and I would like to get rid of them. I have a Views plugin installed but I am not sure how to do this.
In your View create a filter for Node: Type. Here, you can tell it specifically what kind of content to show.
you can change your frontpage settings in admin/settings/site-information
so let's say you created a view - with a page display
set the page url of your view (eg. articles), and then in your settings (the path i mentioned before) you set the drupal frontpage to the page path of your view (that would be 'articles')
i hope that's clear enough for you

Resources