I'm running D6.22 with Views 2.12. I use Views to create a "search / manage content" page for my site editors.
Is there a way, within Views, to show a CCK checkbox, and allow someone to select / unselect the checkbox from the View? I'd like for my client to be able to see a list of all pages, and change the CCK checkbox for these pages without having to go to node/xxx/edit for each page.
You can use Views Bulk Operations (VBO) , So select Style: Bulk Operations under "Basic settings" in views admin pane. then set settings of the style(by pressing gear wheel icon):
there is an option named "Modify node fields" at the end of "Selected operations:" now select the defined field(checkbox or somethings else) as Display fields.
Related
I have a liferay theme for version 7.3. I am facing one problem in the theme's menu.
Now menu has some static items. How can I change (add / remove) items dynamically by admin account?
The menu is added in /src/templates/portal_normal.ftl as
<#include "${full_templates_path}/menu-bar.ftl" />
this file has static html data.
Now how can I make it dynamic so that admin can change the menu items?
Make the menu as a web content, and drag it to the theme? Not makes sense because menu is the part of the theme.
Or any other way of picking the menu items, looping the items in .ftl and display it?
The times of scripting navigation and menus in the theme are over, and I'd rather recommend to embed a portlet in your theme that does the job. That might be a stock NavigationMenu portlet (see how Liferay's default "classic theme" does this with NavigationMenu or the SearchBar), or a custom one, which generates exactly what you'd like.
Reason: It's a lot simpler to redeploy a new portlet and generate/test appropriate HTML markup generation in a portlet than it is to implement proper error handling in a theme's freemarker script.
The solution can be if you want to add your data in navigation menu in themes, go into the navigation menus inside site builder in menu and create a new menu by clicking + button on top right and name the menu. Then go into the pages inside site builder inside menu. There will be a + sign on public pages. Click that and add a page that you want to list. If you want to create a submenu then on the page that is created, create a subpage by clicking there + sign. The page will be child and will be shown as a sub menu in theme.
I have created single category back end view. I mapped back end view to view panel control in xpages in notes 9 and set the following property to open xpage view in collapse mode.
expandLevel is "1" in All Properties of xpage view panel.
Initially view panel is displaying in collapsed mode. when i expand any category, its expand the category and show the list of document(Default 30 entries will display). I like to navigate to next page to see rest of document and categories. But when i expand the category, pager page count is not changed. its not calculating the pages. I unable to find link enable to navigate in pager.
Its work for me in notes 853 and notes 852.
any one else facing issue? To reproduce issue just create single category backend view(make sure have more document to display in more pages) and map to xpage view control and disable expand level property
Its not work for me in both web browser and xpinc.
is problem with notes 9? or something else? Do i need to enable any other setting in notes 9 to make work?
Using categories in views is not a recommended UI pattern for web applications, so you might actually consider using an alternative.
I have my account entity linked to a custom entity called inspections, I only want these inspections to be created for accounts of a certain type. So when it isn't that type I want the left hand navigation to this entity to be hidden away. I've seen some code that says will hide it away, as long as you have the navID of the item.
I've had a crack at hiding it using what i thought could be the ID but it hasn't worked, so I'm wondering if anyone knows how to get this ID, or if there is another way to do this?
The code I'm using to hide the navigation is below:
var navitem = Xrm.Page.ui.navigation.items.get("nav_ts_inspection");
if (navitem != null)
{
navitem.setVisible(false);
}
Load the form
Press F12 to show IE Developer's Toolbar
From here you can use CTRL+F to search for the display name of the item you'd like to hide. This will give you a link that is generated. The Id of this element is what you need to use to show/hide the link.
As an example, you can see results of searching for 'Sub Accounts' on the Account screen for an installation I am working on at the moment. The Id can be seen and is 'navSubAct'
Changes by traversing DOM and manually hide an area is not officially supported.
Luckily if you are on CRM 2011, you can go to
Settings > Customization Or open the solution.
Select the entity > Forms. Inside the Form editor window, open the Form Properties of the entity.
Go to Display Tab and untick "Show navigation items" checkbox.
Finally do not forget to Publish your changes.
Use the relationshipname to hide folder in navigation like this:
If you have folder with the relationship name: ts_inspection
Use this for ID: navts_inspection
So otherwise the same as above, but lose the extra underscore (_) between nav and ts.
var navitem = Xrm.Page.ui.navigation.items.get("navts_inspection");
If you want to hide particular navigation section from the FORM then remove all the links from that section and publish it. That section will not be visible anymore.
If you want to just remove Navigation Pane from FORM, then go to 'Display' tab of form and mark as 'Do Not Show' and then publish it.
I've converted a Custom List forms to use InfoPath forms using SharePoint Designer, now I want to revert this back and return to the normal New, Edit and Details forms.
How can I achieve this?
Edit: Here is what I did
In SharePoint Designer 2010 I Clicked on Lists and Libraries
Click on the List I modified
In the Ribbon I select Design Forms in InfoPath in Actions Group
I started to design the form like I want
I published the modifications to the List
Now I want to undo what I did and return to the normal New, Edit and Details forms
List -> List Settings -> there is some InfoPath forms server settings link that leads to the page where you can remove customization.
Changing default Edit/New pages will not help - you need to modify pages for default content type of this list if you want to go this route.
You should be able to do this in SharePoint without needing SP Designer.
Navigate to the list in SharePoint.
On the List ribbon bar, click List Settings.
Under General Settings, click Form Settings link (bottom of first column).
Select the Use the default SharePoint Form option.
You can also opt to delete the custom form by checking Delete the InfoPath Form from the server.
If you created new forms, in sharepoint designer, set the orginal dispform.aspx, editform.aspx and upload.aspx as default.
if you changed the original files, from the navigation pane, go to "All files" --> "/lists/your list" or "your library" --> forms.
Right click the changed files (a blue icon should be present) and then click on "Reset to site definition"
Please note that if you go into the List Settings and click on Form Settings you should see "Infopath" or "Sharepoint" as an option. If you do not see that the form hasn't been checked back in. Open the form back up in Infopath, Publish the form, then go back to your sharepoint list settings and select "Form Settings" from there you should now see the sharepoint option. Select that and you should be good.
If you are looking to hide some of the questions but still see them in Data View (alot of the reason why some of us are doing our forms in infopath) you can actually hide some of them by going to "Advanced Settings" and turning on "Allow Management of Content Types" then going into content type by selecting your list, and from there you can make all the changes by clicking on the column item. This is a great way to hide columns you don't need everyone seeing that you may need to make updates to (lookup columns etc)
I've customized NewForm, EditForm and DispForm to allow users to create new, edit (with certain permission) and display service requests.
The forms work fine except in my views (e.g. Createbyme.aspx which shows all requests owned by me). Instead of pointing to my custom DispForm /[site]/Lists/[list_name]/DispForm_custom.aspx?ID=[request#], it links to /[site]/?ID=[request#].
Is there any suggestion for a fix?
I just answered this question in another post...
Restore NewForm.aspx file
To summarize,
Open the page and select the form control. Oen the propertis for that control and select the radio button "NEW ITEM FORM". After you save the page you can then select the page as a supporting file for the list and the setting will stick. Do not select the page as a supporting file first as the setting will not stick... ergo the order of your steps is important.