New template in Umbraco, won't show on the Template drop down on content pages - content-management-system

Another Umbraco question, apologies.
I've created a new template in the Master templates list, but this template doesn't show up in the Templates drop down list on content pages.
I'm wondering if there's something I've missed, or if there's a way to publish this which isn't immediately obvious.
Any help appreciated.

You need to select the template as an allowed template type for the Document Type of your pages. Lets say you're page Document Type is called "ContentPage" and you've added a new template called "NewTemplate".
By default you won't be able to select the new template when editing your "ContentPage" pages. You'll need to go into "Settings" in Umbraco, and then expand the "Document Types" folder. You'll see a list of all of the Document Types, select the one you want to use the template on ("ContentPage" in this example).
The first tab that you'll see is the "Info" tab. There's a checkbox list called "Allowed Templates" that you need to select your new template in. Save the Document Type and go back into the Content. You should now be able to select "NewTemplate" as a template on your "ContentPage" pages on the site!

I hesitate to engage in thread necromancy, but because this is the first Google result and things appear to have changed in 7.4.3 (the first version of Umbraco I've ever experienced), I'd like to share the process I use to add templates to document types.
Go to "Settings".
Expand "Document Types" and select the document type to which you'd like to apply the template.
Click "Templates" in the top right of the page.
Click "Choose extra template".
Select the template you wish to allow and click "Close".
Click "Save".
Go to "Content".
You should now be able to create new content under the document type you selected with the template you specified.
I hope that helps to save another new Umbraco dev some head-scratching.

Related

Using Hyperlink in Jaspersoft Studio

I am very much new to Jaspersoft studio. I am trying to create Master Detail kind of report.
Master table does contain details about DEPARTMENT details.
Child table does contain details about departmentwise EMPLOYEES.
DEPARTMENT(DEPTNO, DEPT_NAME, LOC)
EMPLOYEE(EMPNO, ENAME, SALARY, DEPTNO)
Now what I want to do is, when I click on DEPT_NAME hyperlink in Master table, the corresponding employees should be shown in child table like shown in the below image.
I could not get proper results in the Google search.
I am following one document to learn about Jaspersoft Studio (downloaded from Jaspersoft official website).
But, there is NOT much clear information about the procedure how to do.
For examplef, it is written like
Click the button next to Hyperlink When Expression to create
. But what expression to write is my doubt!
AND ALSO,
Can anybody please tell me the location for best tutorials! For example, explanation in this this link is so nice. But, I want to know where it is originated from!
Hence, anybody please help me.
The Hyperlink When Expression is used if you want the hyperlink to appear conditionally. If the expression evaluates to true, then the link is displayed. In your case, I believe you want every instance of the Dept Name field to display a hyperlink, so you would not put any expression in there.
As for making a child table appear, I don't think you can do that. You have two choices:
You can make the link a ReportExecution link. When the user clicks it, a new report is run that displays the child table. But it won't appear in the same document.
You can make the link a LocalAnchor or LocalPage link. In this case, you would already have to have included all the child tables on the report, and the link would simply navigate the user to the correct place in the document.
Documentation on JasperSoft hyperlinks can be found here.
If you are using older version of jasper you will get hyperlink option when you right click on field on which you are giving hyperlink. For later version you will get this option in right hand side properties section while clicking on that particular text field.
Hyperlink section choose blank if you want to open drill down report in new tab or self to open it on same page.
Choose Report Execution.
In parameter section create a parameter
name=_report and value="path of drill report"
Create another parameter with department name and in value "field department"
Thanks.This will work.

How to apply own template on Joomla? [duplicate]

Joomla is pretty good CMS but, is there any way to create custom template which will be joomla supportable ?
If I understand your question you want to convert an existing template that isn't even a Joomla template. If that is the case I found it very hard to do, of course depending on where the template was coming from. I ended up taking a template for Joomla 1.5 and starting from that. (Although the ja_Purity is a messy one when it comes to the CSS, looking back I would should have started with another one....)
Yes, you can do it. Copy default template which comes with Joomla and customize it, and you can install it now.
Refer : http://docs.joomla.org/Joomla!_1.5_Template_Tutorials_Project
Follow the SiteGround tutorial.
1st result for Google: joomla change template.
If you mean a page-specific template, then this is answered here: http://docs.joomla.org/How_do_you_assign_a_template_to_a_specific_page%3F
It describes the following steps:
In Joomla! there is a default
template, but you can assign other
templates to specific "pages" that are
defined by menu links.
To assign a template to a page, you
must first make sure that there is a
direct menu link to the page.
Go to Extensions>>Template Manager
Select the Template and click the edit icon (or click the template name)
In the left column, change "None" to "Select from List."
Select the links you want to apply the template to.
Save
Note that you cannot assign the
default template to individual pages.

Programmatically creating menu hierarchy in Joomla

Let's say that I have a vast quantity of restaurant reviews in a database -- not Joomla articles, just database tables. I want to display these restaurant reviews as part of a Joomla 1.5 web site.
I can write a component to display each review. That part is fine. But rather than listing the reviews as a list on a page, I want to use the nice cascading menu that is part of the Joomla template that the site uses. But I don't want to have to add menu items one by one for each review; I want menu items to be generated automatically from the database contents. The menu of reviews should 'plug in' the existing menu structure for the web site (i.e., I want to supply the code that generates the menu items with an existing menu item so that it generates itself under that item).
How can I create code to programmatically create that menu? Component, plug-in, module, ...? Would the menu be generated at page display time, or "manually" in the admin panel (I'm ok either way). Any examples of this already?
I think the simplest way would be to create a custom menu module. The absolute basic one would just output the list of reviews in a <ul> and then use some css to style the list.
I ended up creating a component that creates the whole menu structure at once, upon admin request. It just creates rows in the jos_menu table, as if the menus were created manually. Updating the hierachy is a pain (and I haven't completed that part), but creating the structure from scratch is pretty simple and works well.

Custom template support for Joomla

Joomla is pretty good CMS but, is there any way to create custom template which will be joomla supportable ?
If I understand your question you want to convert an existing template that isn't even a Joomla template. If that is the case I found it very hard to do, of course depending on where the template was coming from. I ended up taking a template for Joomla 1.5 and starting from that. (Although the ja_Purity is a messy one when it comes to the CSS, looking back I would should have started with another one....)
Yes, you can do it. Copy default template which comes with Joomla and customize it, and you can install it now.
Refer : http://docs.joomla.org/Joomla!_1.5_Template_Tutorials_Project
Follow the SiteGround tutorial.
1st result for Google: joomla change template.
If you mean a page-specific template, then this is answered here: http://docs.joomla.org/How_do_you_assign_a_template_to_a_specific_page%3F
It describes the following steps:
In Joomla! there is a default
template, but you can assign other
templates to specific "pages" that are
defined by menu links.
To assign a template to a page, you
must first make sure that there is a
direct menu link to the page.
Go to Extensions>>Template Manager
Select the Template and click the edit icon (or click the template name)
In the left column, change "None" to "Select from List."
Select the links you want to apply the template to.
Save
Note that you cannot assign the
default template to individual pages.

MOSS 2007 - Customize Send To Menu

We currently have a need to add a custom menu item to the Send To menu within our document libraries that would allow a user to create a link to the currently selected list item within another library. When the user clicks on the new "Send Link to..." menu item, they should be prompted to browse to the library in which the link should be added. Once the user chooses a destination, the link, along with the metadata from the list item, should magically appear in the selected desitnation library. Once again, we only want a link, not a copy of the file. Is this possible to do? Code examples would be much appreciated.
Does it have to be in the send to menu? Can it also be directly in the context menu (say at the bottom)? If so, you can create a feature that deploys a CustomAction to the site. If it really, REALLY needs to be under the "send to" menu, you are going to have to use javascript (since that is how the out of the box context menu is created) to "hijack" the menu and insert your own item.
IMHO this is rarely needed, a CustomAction is the preferred way of doing this. It is the easiest and most "maintainable" (all it is is a feature + customaction definition with maybe some code, all of which are deployed using a solution).
More info on CustomActions here.
P.S. if you do decide to go with javascript, don't go editing the out of the box sharepoint js files in SharePoint's 12 Hive, but add a ContentEditorWebPart to the page and insert your Javascript in there.
P.P.S. While assigning a method from an assembly as the action for a CustomAction is allowed in most cases, it is not for the ListEdit (item) context menu.
What they say is that "Sharepoint server 2010 will have it out of the box", i.e. documents may stay where they were created and links go to the Records center (named "In Place Records Management, see http://www.cmswire.com/cms/document-management/the-scoop-sharepoint-2010-records-management-005948.php).
MOSS 2007 requires the actual document to be copied to the Records repository to be registered.