Drupal: List Content of Content Type in Node - url

How would I create a node, that will list content by content type(ex. only basic page). It will allow the user to delete or edit the content as well.
I do see that in Node: admin/content I can filter out just basic pages. However I would like a url to where the filter is already apply.
I basically want the user to click the URL to the filter list of just basic pages.
I am using drupal 7.
Thanks!

Related

Generate dynamic URL pages basis filter options in Rails

We have a rails app at remote.tools and if you see the product pages (see this page), there are a set of tags associated with each product. I am planning on having filtered search basis these tags on category pages (see this page). Now, I have already tried doing this with the 'Acts-as-taggable' gem and 'Simple-form' (basis this blog).
I am fine with having a page refresh on hitting 'search' or doing it in place (able to do both right now). However, I want to have unique URLs to be created basis the combination of filters applied by the user. For example, if the user selects 'Video communication tools' as the category and 'free trial' and 'easy-to-use' as the tags, the page URL should be '/video-communication-tools-with-free-trial-that-are-easy-to-use'. Currently, the filter options are passed as params i.e. '/search?category=xx&tags=yy'.
Having separate URLs for filter combinations will allow me create unique pages for indexing and add content contextually as well.
How should I go about doing this?
You can use jquery to achieve that,
Something like this.
<script>
$('#search_button').on('click', function(){
window.location = "" + $('#tag1').val()+"-"+$('#tag2').val();
});
</script>
Make sure to add id in your search button. Hope this works for you.

Changing page asset definiton

I am on Oracle WebCenter Sites 11gR1.
I have an asset page that is on the tree of a site.
The page requirements and presentation have changed, so a new definition is needed to hold the references to other assets (the original definition can not be changed since is used in other pages). The page to change its definition is linked/referenced from other assets/URLs, so it is not possible to replace it with a new page.
Is it possible to change the page definition? How can this be achieved?
When i edit the page, the definition field is only a link to the definition, but not an editable field.
Thank you
You cannot change the page definition of an existing page instance.
You can change the existing page definition, that is being used in your page instances.
Go to Admin Perspective > Search > Page Definition > Search by your Page Definition > Click on Edit (pencil) and make your changes (eg: add or remove attributes).
If you want to add new page attributes, you should create the page attributes before edit the page definition.

jsTree - expand and highlight node I clicked on previous page

I tried to use jsTree because of easy creating static HTML list into tree.
Do not ask me why, but I need to use as source HTML list structure with links.
I have left column on the web with some div panel and tree navigation using jsTREE.
What I need:
1) User expands some nodes and let me say on 3rd level of three there is item with link
2) User click on the link, it will redirects the user on new page with some content
3) On the left there is still jsTREE and I need to expand the tree and highlight the node, user clicked in previous step.
The best for me would be to compare URL and HREF of hyperlink in tree.
If webpage URL and hyperlink href attribute in tree is the same, this node should be highlighted and expanded, so user can see, where he currently is.
Any idea, how to do it?
just use jstree plugins to do so:
"plugins": ["types", "wholerow", "conditionalselect"]

Google index MVC URIs in a long-page context

I have a long page comprised with a set of modules with their own URI
Example
Page URI
http://mysite/index/product
Module URIs
http://mysite/index/product/specifications
http://mysite/index/product/features
Now what I would like to do, is when a user searches for "features", then Google would display the content from the individual module in the search results, but when the user clicked the link, it would actually take them to the "features" section within the context of the "product" combined page.
I've tried a test using a canonical link back from the module URI to the main page but Google simply indexes the content in the full page.
How would one approach this? I'm sure it's possible?

RAILS: Tracking content with /#foo in the address bar

Just like in Gmail, I want to create a div which when loaded with ajax would output a #foo in the address bar to track what content would be loaded.
If you go to https://mail.google.com/mail/?shva=1#sent gmail, if signed in, will take you straight to your sent box.
I want to do the same. For example. I have a div that loads a list of recipes. Once a recipe on the list has been clicked content gets loaded from db in the same div and the address bar would say http://site.com/#recipe-permalink. If this link gets passed to a friend and the friend goes to http://site.com/#recipe-permalink the div would load appropriate content with that recipe.
Also is there a way to control more than one div? For example if url is http://site.com/#recipe-permalink#blue app would load recipe in one div and appropriate content in another div for #blue (what ever it may be).
Is there a way to make cells or apotomo have this functionality?
Are there any SEO concerns with doing this as well? Would the crawlers be able to pick up content through #foo links?
Probably not a full answer to your question but I believe this episode of railscasts would be interesting to you.
http://railscasts.com/episodes/246-ajax-history-state

Resources