Creating a button in Orchard CMS - button

I have downloaded orchard version 1.1.30 and run it using Visual Studio Ultimate 2010. The problem is I do not know how to create a simple button which can redirect the user to a specific url when clicked.
I have searched for days and I have not come across anything that teaches how to create a button in orchard platform.
Hope someone could help me on this part :)

That depends entirely on how you want the button to appear. If you just want to place a button on a page, you can create a content zone with an HTML widget, then add the button to the HTML and link it to the URL you want it to go to.
Perhaps if you described in more detail what you want to do, it might help.

Related

Prism detecting if page is modal programmatically and go back

I am implementing a feature using "connectivity" from essentials that when the app goes "offline" no wifi etc.. it navigates to a specific page.
It works in most cases however if I set the phone on "Airplane Mode" when I am on a modal page it does not navigate to my page.
In Prism is there a way to detect if the current page "IsModal" and either goback or kill it so that I can navigate to my specific Page?
THanks
You'd have to write some crazy lookup logic to figure it out. Unfortunately the helper for that doesn't currently exist. However the latest Prism 7.2 preview has some enhancements that specifically attempt to eliminate the need to figure out whether you require Modal Navigation and automatically use the proper type of Navigation. I would encourage you to try the preview. If you come up with a scenario where GoBack isn't working correctly please open an issue.

Adding a button on web debug tool bar symfony2 createbundle

I want to add a new button on the top web debug toolbar. I would be using that button to create a copy of that particular page and save it with another name.
I have been searching but couldnt find a solution. It seems that its possible but i haven't had any success yet.
Thanks
I don't really know what you want to do with that "button" and why you need it, but it is written in the doku, how the create a custom datacollector
http://symfony.com/doc/current/cookbook/profiler/data_collector.html

Can someone please explain how to integrate open graph & Like button into wordpress?

I am trying to implement Open Graph and the “Like” button on my wordpress website. I want to have the Like button positioned directly beneath a youtube video posted on one of my wordpress pages.
I have watched the facebook open graph video explaining the code to put onto your page, but it doesn’t explain how to do it in wordpress. I have researched several wordpress plugins that implement open graph into your site, but they all seem to take data from the site itself and automatically implement it into the open graph data. It also seems to me that using the “Like” button wordpress plugins, the like button is automatically placed either at the top or bottom of the page or in the sidebar.
Can anyone please help me understand exactly how to implement the open graph code into wordpress in a manner where I can control all the parameters of the code (image, url, site name, description, etc), and how to implement the Like button directly underneath of the video on my webpage?
Thanks,
It doesn't matter if it's "for Wordpress" or not. Wordpress is a framework, not a language. Use the Like Button Tool to generate the code you need for ANY Page - Wordpress or otherwise - and read up on the Open Graph Protocol to give you an idea on how to write your <head> section.
Facebook's Debugging Tool will also help you with any caching issues you may be experiencing, along with lots of extra information you might find useful in regards to your website.

Add share button to app page

I have created my app which just shows an image. Below the image I would like to invite people to Share by displaying a Share button. If they do share, the image is replaced by another image. I have worked out how to display the Share button but I can't work out how to display the next image if they have shared. I'm new to app development and will appreciate any assistance. Maybe there is a tutorial somewhere that I have been unable to find.
By sharing do you mean liking? If so, then search for fan-gate.
Here's a great tutorial on it:
http://www.youtube.com/watch?v=fBBnrtG0hAw

Dynamic theme in asp.net

i want to develop our site in such a way user can choose theme. when user will choose theme then i want show the images of our site' home page with various look and user will just choose the images and theme of our site will be change. i know how to change theme from the code behind.
my question is that how could i display the various images of my site's home page with different look which user choose. please tell me the way out. if possible give me a small code to generate the images of my site's home page with different theme attach which user will choose. if anyone know any sample of such things according to my requirement then please give me the url from where i can download the sample.
thanks
I think I know what you're trying to say, and I would go about it like this:
Apply a theme to your site, then run it
Take a screenshot of your homepage
Open Paint and paste the screenshot onto the canvas
Save the image as "MySite_Theme1" or something like that
Once you have followed these steps for each of your themes, do the following to apply each preview to a button
Add the screenshots to your site's Images folder.
Go back into your site and create an <asp:ImageButton> for each theme. Apply ID, ImageURL, ImageAlign, runat, Height, and Width. The control should resize the image based on the button's height & width.
Go to changing themes with buttons, how? for coding the code behind.
I hope this helps you out
EDIT: I would also look for the book Beginning ASP.NET in C# & VB. Wrox is the publisher. I have found that and a lot more at www.wowebook.com :)
You could use ASP.NET Themes which could be changed dynamically at runtime.

Resources