2sxc | Default Value of Page Picker to be current page? - 2sxc

Is it possible to have the Page Picker input hyperlink field to have a default value be the current page? I know you can specify a selected page but if this was automized then it would aid UX, thx

At the moment this is not possible yet. A future version of 2sxc (ca. 9.12 or 9.15) will change page-picking forever :). We will create a PagesDataSource which will then allow for very flexible setups - incl. special filters, queries etc.
So we won't add any more features to page-picking till that is out.

Related

Alfresco property page default values should not be default in advance search screen

In alfresco content model I have made some default values and I can see it on the Alfresco property page in share UI.
I used following tag in content model to make No as a default value.
<default>No</default>
But the requirement is, it should not be default on advance search screen.
Is it possible to customize this as per my requirement? If yes, then what files need to be changed and how. please share the sample script of possible.

Drupal Embedded views not working correctly

I recently took over a site from someone else at a new company. Having never used Drupal before, updating things has been a bit cumbersome. There were some outstanding security updates that I applied(but I haven't updated the core yet). Anyway, after doing this, the calls to views_embeded_view have not been working. For example:
print views_embed_view('news_block');
Will break the links(by using the title, rather than alias for the link), or it will link correctly, but not follow the paging rules I have set(show 1 page, 6 items per page) instead it shows 10 items and has links for other pages.
I am not sure if the update has anything to do with it, but it seems likely. Would updating the core resolve this issue potentially?
The first argument of views_embed_view is view name, the second one is display id. If display_id is not provided, 'default' is used. Make sure that you are displaying the correct display. (i.e. default can be configured differently than some other display which you actually wish to see)

help me to proceed with drupal views?

I am newbie to drupal , I just created a view called "master" and i wanna manipulate the output pro grammatically for creating widget (javascript widget can embed in other website).
$view = views_get_view('master');
$view->set_display('page');
$view->execute();
$viewArray = $view->result;
$title = $view->display['default']->display_options['title'];
echo "<h2>$title</h2>";
echo("<pre>"); print_r ($viewArray); echo("</pre>");
It prints the result(in object form), But the output contains only 10 result which was mentioned while at the time of views creation.Please guide me,
1.how to get the next 10 result pro grammatically (pagination) ?
2.how to theme a views pro grammatically (since its js widget) ?
3.any live demo tutorial links to play with advanced views?
4.how to do sorting (whether i need to pass through url)?
5.how deal this with handler object?
my view preview looks like this below image
Thanxs,
Nithish.
Well, for #1 all you need to do is go into the edit control panel for that view and change the number of records to be shown on each page. Setting it to 0 lets it display all records at once.
For the others ... I wonder if views is the right solution for you. I suspect you might be better off with a custom module that returns a lot of drupal_json() calls. At very least, it's cumbersome and wasteful to be doing all this through views, since views spends so many cycles on rendering.
If you want to avoid coding a custom module, I'd suggest installing the View Bonus Pack (http://drupal.org/project/views_bonus) and using the 'Feed' display types. This will make it marginally easier to manipulate the results with js.

Drupal, Views: using AJAX to load the complete node?

I've a View page with all the content of my website (the node headers). When I click on one of these header I would like to load the complete node without refreshing the page and display it on the left.
Can I do this with Views (I mean.. does it have a functionality to load a complete node and add it to the current page ?
thanks
I think it is possible using Views. Views is much more than just SQL generator.
Views can work with Fields, or with full node. Set it to full node.
Views can work with Ajax - set it to "yes" (I think it is Yes by default).
It is hard from your description to understand the whole picture, so I can't lead you any further. All I can say is that I use Exposed Filter with Ajax and load full node properly, chaning the content of the page.
Hope I helped,
You are welcome to ask me directly for further support.
Regards,
Shushu
No. Views is basically an SQL query generator. You can do what you describe with javascript, but I don't know what modules might be helpful.
Check out Modal Frame - http://drupal.org/project/modalframe
Basically, your view displays just the title, and you have "link title to node" enabled. Rather than jumping to node page, u want to display node content in modal frame pop up.

Drupal voting module with an image per option

I've searched for a while and can't find this option.
In Drupal 6.15 I'm trying to setup a Poll that will allow me to upload an image for each option to vote on, and have the image inline with the radio button.
Also I'd like to have a text field for each option to describe the image.
You'll want to check out the http://drupal.org/project/advpoll module...it allows HTML (and therefore images) in the choice selection, among other things that the core poll module lacks.
may be Fivestar? For text field use CCK.
Check out Advanced Poll Field Image (sandbox module) for use with Advanced Polls:
http://drupal.org/sandbox/xandeadx/1871070

Resources