I am using Silver Stripe michelsteege/silverstripe-frontend-editing . This module is working awesome for Other pages except User defined forms. Is there any way to make the front end editing work with User defined forms? There is no code which I can paste here, as this is a question about a whole module.
I have found the issue. In the userdefinedform.php class file there is a function index() which renders data based on certain conditions. I have commented out that function and front end editing is working as normal and all other features are working.
Resolved..
Related
In my windows form application, I have already added a child form that appears on the center location of the parent form when I click on add a new product button. Now, I want to add a new child form with a different name where I can capture the existing details of the product for editing them.
My problem is that when I create a new child form for editing products, I keep its name different i.e childEditProduct but when I save it, both the child forms (childAddProduct and childEditProduct) appears with the same name.
How can I prevent the IDE from renaming the existing child form?
Your question is unclear. Is it ASP.net Web Forms or Windows Forms Application Aka Desktop Application ?(talking for Windows Forms) if i understand you right you are trying to add and edit from 1 form. so at that form when you pick data.you can simply change form's name in to editProduct and for Add make form Caption Add new. just place that simple row of code in your methods so program will rename it. Also prove some code.
Due to some restrictions, I think Asp.Net do not allow multiple child forms within the same folder. I have created another folder within Forms folder and then I added the 2nd child form for editing a product and it works.
I am still looking for a perfect answer that can clear the ambiguity that was the reason behind this problem.
I want to change the user interface of TIBCO spotfire webplayer according to my company theme. I've found the Stylesheets located in the installed directory and make some color change, but when i refresh the login page then nothing happens. It comes with the old blue web player login panel.
I am using spotfire webplayer 7.0.1. I am done with its Co-Branding Part but the blue color doesn't match up with my website theme. Can anybody help me?
You could create your own page and just embed the desired analysis part via iframe, this would give you much more control over the look & feel of the whole thing:
http://www.bearonspotfire.com/how-to-embed-the-spotfire-web-player-inside-a-web-page
Also this: http://spotfire.tibco.com/tips/2014/11/04/integrating-with-javascript-html/
I am trying to add some Google Analytics related code (addition to the standard code) on every product page. I tried adding it to the bottom of the "product.liquid" file but it doesn't seem to pull through to the live site. Could it be to do with some special Shopify security function that stops unusual looking javascript from being used?
Kind regards,
Benet Hitchcock.
Yes you can do this through your app. You need to take read|write_theme scope at the time of installation of you app now go to theme setting->temeplate editor
Open themes.liquid file and paste your code there
Then its appears on all page
I'm developing a website and I decided to use Facebook comments to provide commentable behaviour. But, unfortunately, I met some problems.
While trying to customize look of news page, ex. http://buchman.pcspace.pl/aktualnosci/ept-snowfest-podsumowanie-czwartego-dnia.html, I am not able to apply CSS to view: everything appears correctly in HTML source, but doesn't change view.
What's wrong?
According to this blog post the new fb:comments no longer supports custom CSS.
After log research I noticed that while loading fb frame, it doesn't use css given as param.
It causes all parts don't work..
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a Drupal 7 multi-language(3) website. I have installed the Internationalization (7.x-1.0-beta2) module.
I have created for each language a page, and translate it into two others languages.
Now here is what I want to do: to set a kind of intelligent "front-page" to know what language is selected and set the front page (which I choose) in that language.
How can I do this? I know that in Internationalization module, there is no such kind of thing, am I right? If I set the front page to nothing I get this message: “No front page content has been created yet.” which is normal because Drupal is asking me for one front-page to be set, however I want to have for each language a front-page.
Might be late to the party with this answer, but after many hours spent trying to solve this myself, I've the following solution.
For Drupal 7:
1- Make sure you have the modules Variable and Variable Translations switched on.
2- Goto admin/config/regional/i18n/variable
3- Select the 'Site information' list tab and check 'Default front page', save settings.
4- Goto admin/config/system/site-information, you'll notice a block of text there saying something about some of your settings being multilingual variables and a list of links for the languages you are running which allow you to set the settings for each language.
Now, this is where the real GOTCHA comes up... clicking those links and changing the settings does nothing. Your left with the same settings still for all languages. The way around this?
Check the URL you are currently on, the entire thing, so something like: http://www.example.com/en/admin/config/system/site-information/
Notice the language prefix there before /admin?? To change the settings for the other languages you want to use, switch the prefix in the URL and then make your changes. And now, as if by magic, multiple front pages, properly changing based on language.
This must be a bug in Drupal, I should get around to opening a ticket. But for now, if someone else comes across this, I hope it solves your problem too.
I've been searching for the same. I 'd like to recommend Drupal 7 - multi-lingual front page node which is complete and works perfectly for Drupal 7 projects.
After continuing to rip my hair out over this, I found out that this feature is incompatible with anonymous page caching!
Go to /admin/config/development/performance and turn off page caching for anonymous users.
May be there is a better way but finally he is how I did.
I have added in template.php the following code:
/**
* Implements hook_preprocess_page().
*/
function aelius_preprocess_page(&$vars) {
if ($vars['is_front']) {
$langcode = $GLOBALS['language']->language;
if ($langcode == "en") {
drupal_goto('home');
} elseif ($langcode == "fr") {
drupal_goto('accueil');
}
}
}
I haven't worked with Drupal 7 i18n yet, but in Drupal 6 you would add a site_frontpage variable to $conf['i18n_variables'] in settings.php and then switch to each language in turn and set the frontpage on the site information page.
Alternatively, you can specify a condition in your theme front-page.tpl.php like so