A friend of mine is working on adding content to a Wordpress site.
Shes making a link with a label.. Simply put, theres a two textboxes, one has the title Link and the other is its label. She needs the text in the label to be with a & character in it, because the company name to display is B&O. But the result is B&O instead.
How do we avoid this?
For clarity the label for the link, should say "B&O" .. dont care about the underlying link.
Related
I'm using a Wordpress plugin - Search & Filter to filter the content on portfolio page. The content can be filtered by category and tag.
Basically, what I want is to remove the text "portfolio" on drop down menu as shown below. Which mean change the text from "All Portfolio Categories" to "All Categories".
I have go through the plugin code, but still cannot find it. Hoping that some of you could provide me with some advice. Thanks!
You have to add this in the shortcode:
all_items_labels="All Categories, All tags" (or whatever text you need to fill in)
Probably this is the complete shortcode you need:
[searchandfilter fields="category,post_tag" all_items_labels="All Categories, All tags"]
Hope it helps!
To replace the drop down, Use the code below
[searchandfilter fields="search,product_tag,product_cat" submit_label ="Search" search_placeholder="Search for a service" all_items_labels=",Location,Categories"]
in all_items_labels=",comma after all_items_labels=" is due to my search bar. As there is nothing to change in that, keeping that , will take it as the first position and will move to the second and third replacement. You can use similar structure to change any label of any position.
hope someone can help me. I created my own collapse panel on the following page:
http://designerandpublisher.com/drupal-testing/?q=donald-case-page
It's at the bottom of the above page where the blue box is and the word empty... is.
Also please note on the above page the Donald Stories and the links on the right sidebar. That is a view I created and any time you write a new page and select the correct tag, the new page's link will populate in that Donald Stories section.
But here's what I really want to happen - I want that Donald Stories view to appear where the word "empty..." is so that it's inside of that collapse panel (for demo purposes, the collapse panel is permanently open to show what's inside of it).
I know I could set up a new region for the "content" portion of the theme, but if I do, and then add Donald Stories block to that region, it will just show up in the page's body at the bottom but won't be where the word "empty..." is. How would I specifically tell that new region to appear where "empty..." is, since I created that collapse panel myself and it's not another view or block?
Any help is appreciated. Thanks.
You can display block/view in specific page following below steps.
1) Go to block list & click 'configure'
2) REGION SETTINGS - Choose the region that where you want to display block.
3) Visibility settings - Show block on specific pages -> select 'Only the listed pages' and enter page list below textarea.
Know more
Note: You can place block/view only in theme regions. So you should have region to display block/view. You cannot place block anywhere in the page.
I am trying to create the ability for the end user to add quotes (testimonials) as posts. So far, so good. I have enabled the 'quote' post-format in my theme. So the ability exists to enter said testimonials, and I have even figured out how to show some random quotes in the sidebar. The next obvious step is to have a "testimonials" page, where all of the quotes are archived, over time. It needs the ability to be a page, which means that the client can alter the text in the page, and it can be linked to, in menus and on pages. Following the opening (editable) text, would be a list of the quotes, like an archive page, except that the entire quote would be on the page. For that reason, it would at some point, have to become paged. Any ideas?
This what I am expecting:
If the user filled the textbox, and if the user checked means, while displaying the content on that time, content should show as a link, if the user is not checked, then it need not to show the link while that content in view mode. See the following image for an illustration.
Not an exact solution to what you want to do but I believe the Link Module will display only text if no url is entered.
You can give users a message saying to leave URL field blank and only enter a TITLE if they want plain text.
UPDATE:
You don't need to code any hooks. The CCK Module adds fields to content types. The Link Module adds link functionality to CCK.
No coding is necessary; this can all be done from the admin panel. If you have no idea what I'm talking about see this video.
http://drupal.org/project/conditional_fields module does exactly what you are trying to accomplish. You can use the link_field of cck along with the conditional fields module. So based on the value in the check-box you can choose to display it in the node view.
I'm using blockcode and geshi module on my blog to highlight syntax in my posts. but everytime i edit a post with blockcode tags i have to disable ckeditor, because otherwise it will break my code, it inserts nbsp and br tags, which are visible in the post, or totally drop newlines. this is really annoying.
does someone know a way how to fix this!?
thanks a lot!
I'm not sure which module you are using to provide the ckeditor (ckeditor or wysiwyg module?), but the only thing I can think of would be to flat out prevent the editor from appearing for the specific field. I wish there was a way to run a snippet and check for a substring, and then display the editor based on that... but that would be fairly complicated to do.
The joy that is Drupal (notice the sarcasm) has a cleverer way to deal with this. I am using the CKEditor module.
Beneath every CKeditor WYSIWYG form field, you see the text:
CKEditor: the ID for excluding or including this element is {theme-name}:{path to field-name}
For one of my particular fields, specifically one that allows me to change the contents of a particular block, this becomes:
CKEditor: the ID for excluding or including this element is garland:admin/build/block/configure/block/10.edit-body
To not have CKEditor show up for this particular field, do this:
Go to your blocks administration page.
Find CKEditor.
Click on 'CKEditor' listed under the CKEditor block heading.
Figure out which is the relevant profile for you as an admin (probably by default this would be 'authenticated user').
Edit the relevant profile.
Click 'Visibility settings'.
"Use inclusion or exclusion mode:" is most probably set to "Exclusion". In the box labelled "Fields to exclude/include:" enter the line below the CKEditor box you want to get rid of. In my case "CKEditor: the ID for excluding or including this element is garland:admin/build/block/configure/block/10.edit-body"
Save
As the French say, "c'est tout".