It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I am newbie in silver stripe.
I have added the extension
https://github.com/sheadawson/silverstripe-rateable
But, I am unable to understand how to use this extension....
I am unable to create the data object... please help....
"Then in your templates you can use $RateableUI, when in the context of your rateable object to render the star rating UI"
this step i am unable to understand
Regards
never used this extension but the way I see it you could do for example:
Add the extension to the DataObjects you want in _config.php:
Object::add_extension('ApplePage', 'Rateable');
Object::add_extension('Apple', 'Rateable');
Remember to run dev/build.
Here ApplePage is a Page with a $has_many relations 'Apples' => 'Apple'
Then in you ApplePage.ss template you could use something like:
<p>Rate my Apple Page: $RateableUI</p>
<p>Apple list</p>
<ul>
<% loop %>
<li>$Name (Rating: $RateableUI)</li>
<% end_loop %>
</ul>
Related
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
i am trying to learn twitter bootstrap on ASP webforms, can anyone tell me how to apply bootstrap on menu control that loads from sitemap data source. I will appreciate if there is any tutorial link available for webform specifically. Thanks
This tutorial is good:
http://geekswithblogs.net/JeremyMorgan/archive/2012/09/18/how-to-use-twitter-bootstrap-on-an-asp.net-website.aspx
It's a pretty general question you have, but basically you want to assign a DOM ID to your web controls, and the javascript is going to look pretty much the same as you would find in the Twitter Bootstrap examples.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
For now all my sql calls take place in the cs pages and its a lot of code my goal is to set a new class or whatever (i heard it is done right with dll's) that the class will store functions for every scenario i will need. So my question is how to accomplish it .. Suppose in a large scale site how it is supposed to be done?
I would suggest creating a Class Library Project, moving your shared code to those libraries, and then including those libraries in your Web Project.
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 9 years ago.
I have a custom button in the ribbon.
When i select any item (Component or Page) in tridion and click the custom button, i should be able to get the tcmid of the selected item.
var selectedID = selection.getItem(0);
in the _execute method, from my tutorial at http://www.curlette.com/?p=279
Extensions.WhoDidIt.prototype._execute = function WhoDidIt$_execute(selection, pipeline) {
Please spend some time (around 1 week) looking at existing examples and solutions, including my GUI Extension tutorials. Please do make a strong effort and try for yourself before quickly posting here - you will learn more and have a greater understanding.
GUI Extension Samples:
http://jaimesantosalcon.blogspot.com/
http://tridionfanboy.wordpress.com/
http://albertromkes.com/
http://yoavniran.wordpress.com/
http://sdltridionworld.com/articles/sdltridion2011/tutorials/GUIextensionIn8steps.aspx
http://sdltridionworld.com/community/2011_extensions/linkedin.aspx
http://www.curlette.com/
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 10 years ago.
I'm a bit new to wordpress plugin coding. I've been working on a plugin that will be very large, and contain many custom data structures.
I know this is a pretty general question, but I have a list of items (groups) on my options page. I'd like the entire options page to just use the settings api, but this list needs to have items added/edited/deleted from it. Does anyone have a good example of how to do this?
although I saw an exmple before - I can not remember where . But what I have tried to explain to you above is that first you need to add the elements using jQuery append like here : Dynamically adding HTML form field using jQuery then, for the options, just create an array, like here described here : http://wordpress.org/support/topic/dynamic-options .
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.
Closed 11 years ago.
I need to create dynamic menu using and submenu using dynamically using c# code in Asp.net and pass this to .aspx page
use the ASP.NET Menu Control and set the RenderingMode to List and bind it to any datasource that respects the IHierarchicalDataSource Interface
A nice tutorial is found here