I don't want to change how the Status field works I just want to change the labels to
the states that the old system uses. (the old systems consists of spreadsheets and paper :P
We are using 3.0
* UNCONFIRMED --> PRELIMARY
* NEW --> DESIGN REVIEW
* ASSIGNED --> STR1
* RESOLVED --> STR2
* REOPEN
* VERIIFED --> BMR
* CLOSED --> TCG
If you log into the bugzilla system as an administrator you'll see on the bottom a link that says "Field Values", click that, on the next page you'll see "Resolution", go there then click on the resolution you'd like to change,
I think this can be done by modifying the templates look here:
http://www.bugzilla.org/docs/2.22/html/cust-templates.html
specifically:
global/variables.none.tmpl
Related
How to add a restriction or validation for a content type that can be add only one content.
ex - Hotel web site room listing page should have only one content. After added once that only can edit or delete.
(I am a beginner for the Drupal)
Have you checked Node Limit module? I have never used it, but seems suitable for what you want to get.
Hope it helps.
I've seen many posts on various sites which talk about adding "to your HTML Purifier config", like Sonny's excellent response to this question: HTMLPurifier iframe Vimeo and Youtube video
However, try as I might, I can't seem to discover exactly how to set up my HTML Purifier config. I'm actually trying to add a custom filter a la Sonny's comment, but the closest I can come to discovering how to set up my HTML purifier config in my Drupal 7 environment is from /sites/all/modules/htmlpurifier/config/sample.php:
<?php
/**
* #file
* This file is a sample advanced PHP configuration file for the HTML Purifier
* filter module. In reality, this file would be named N.php, where N is the
* integer identifying the filter this is configuring. The configure page
* for HTML Purifier (advanced) will tell you what file to copy this to.
*
* See this URI:
*
* http://htmlpurifier.org/live/configdoc/plain.html
*
* For full information about permitted directives. The most interesting ones
* for custom configuration are ones with the 'mixed' type, as they cannot
* be configured using the webform.
But this hasn't helped me at all - I don't see anything on the HTML Purifier (advanced) configure page (on the text filter config page? I don't see anything there...), and the doc at the URI above didn't help, either.
Edit: much thanks to #Chris for his answer to my original question. I subsequently found that creating the filtered_html.php file removes the ability for me to configure HTML Purifier for Filtered HTML from the UI! Is this supposed to happen?
All that I see from the UI when looking at HTML Purifier (Advanced) is the checkbox for "Display help text". (I already added this as a comment below, but I thought I'd modify my question as well in the hopes that more people would see this...)
First, make sure you have the HTML purifier library installed as show in the INSTALL.txt file. The status report page will show you the version if it's installed correctly.
In Drupal 7 the filter system now uses string keys rather than integer. So to create a configuration file for the format "Filtered HTML" under sites/all/modules/htmlpurifier/config/, copy sample.php to filtered_html.php, and update the hook function name like this:
function htmlpurifier_config_filtered_html($config) {
The rest of the tutorial above worked for me, and now my preFilter and postFilter functions are being called.
I thought you could do this through the UI, but it looks like the "Filters" custom configuration box is not evaluated as PHP.
I want to display particular block on view page. I have added list to show specific view in a particular block as <viewpagename>, but it is not working. How can I show a particular block on a particular view page in Drupal 7?
Long time I didn't touch Drupal, however, if I remember right, after you choose a path for your view, you can add that path to the settings of the block.
so if the view is available on /view-page, add to the block setting "view-page" in the "include" section.
There is a block_views module made specifically for this reason I believe. It's in beta but works rather nicely for Drupal 7:
https://drupal.org/project/block_views
Cheers,
-cs
How to use treeview e. g. as sidebar?
There are no standard element. You can build your own View. Look in other projects for some implementation or use jsTree
It seems there is an add on that is exactly for what you are looking for listed on the website.
At least it seems that way according to the description.
Its located under development and add-ons.
I'm thinking about trying the framework myself so I have no idea if this will work for you or not.
I noted there is a file atk4/lib/TreeView.php which extends Lister
It appears to be a bit old as it has hardcoded paths to the icon images for + and - as amodules3/templates/kt2/ which in agiletoolkit 4.1.1 is /atk4/templates/shared/images but maybe you can try adding this to a page and see what it does.
From the comments at the top, looks like it needed a mysql table with a primary key called ID and another column in the same table called parent_id which would provide the values and probably in order to display text strings would probably need another column called name in the same way refModel works.
If you decide to try and get it working, maybe you can post it back to Romans to update in ATK4.1
Please check newest ATK4 addons source:
* https://github.com/atk4/atk4-addons
* * addon "hierarchy"
* * addon "tree"
I am having a problem with registered marks in the HTML module. We need to use the Registered Trademark symbol (®) but some of them are being changed to question marks. I can find no ryme or reason behind which change and which remain correct. I have tried a number of things to fix this issue including the following:
Using ® and ®
using <sup>®</sup>
copy and paste of ® in both source and non source
and using the "insert special character" from the RTE menu
Some of the symbols remain but most revert back to question marks. If i'm in edit mode, the questions marks change back to the registered mark. Also sometimes the first time viewing the page not logged in or in view mode, they will look fine. But as soon as I got to edit mode or a new page then go back, they change back to question marks. I am out of idea as to why this is happening.
You can see the page at: http://fasttracsc.twif.net/AboutFastTracSC.aspx Anywhere you see Fasttrac? it should be Fasttrac®
Any help anyone can provide would be much appreciated.
Thanks in advance.
ok i have found the problem. The Rich Text Editor has a bug ("maybe by design?") that even the source button does not show you raw HTML. The RTE is still rendering the HTML prior to inserting into the database. If you change the RTE to Basic Text Box and edit the HTML there, you are once again able to get a consistent ® symbol using the ® code.