Edit Sharepoint shared web part CSS for extra actions - css

Currently I have a web part with some custom CSS. This is a Document Library web part which also contains the link to "Add a new document" below.
Once I click Add new document I am taken to the upload document page. Is there any way to have the upload document section displayed on the same page or is there an easy way to custom style the upload document page for just this library only?

Well, the upload page is also a web part page which hosts a list form web part. You can add the web part to any page and add custom CSS to that page, even using Content Editor WP. The problem is that the Add new document link always points to the page that is designated as the New form page of the list, you can change this setting using SharePoint Designer in 2007 (it's even simpler in 2010).

Related

Easiest way to implement a temporary page to a Drupal 7 site

I'm a WordPress developer who's been tasked to create a temporary one-pager to a Drupal site. The client would like to have a simple front page with a logo and 4 external links until their new site is ready. Normally I'd just make a simple index.html page with some CSS and call it a day. But in this case they need some of the sub-pages from the Drupal site to continue to work.
Had it been a WordPress site, I would have just created a new template file and a new page inside WordPress, and made that the front page. But as I have zero experience with Drupal, I don't know if you can do the same thing here.
What is the easiest (quickest) way to make a simple splash-page as the front page, while having the rest of the drupal site continue to work? The splash-page should ignore all CSS and JS from the original theme — preferably have a completely independant section fromt the rest of the site.
In Drupal 7 you have few "levels" of templates. First you have "most outer" template html.tpl.php It contains html head and it is usually common for all pages.
Then inside that html.tpl.php you'll include page.tpl.php. That one should again contain some common page elements, as header and footer, but again, if your design requires that, you can have more than one page template.
Page template will include node template. In drupal you have 2 basic content (node) types but you can create many more of them. Basically for every different page layout you can create new content type (but there also are lot of different ways to achieve the same thing).
Basically you should create new content type called i.e. "splash" (machine name!). Add fields to it if they need to be back-end editable.
Then you should create new template file for your content type. Name matters, so you should call it node--splash.tpl.php . You can find and copy to your theme existing node.tpl.php and change it to your needs.
Keep in mind that when ever you add/remove new template file you have to clear the cache so drupal would scan theme directory, notice and start using new templates.
And if you need also different page template for you page you'll have to put some code into you tamplate.php file:
https://www.digett.com/insights/overriding-page-templates-content-type-drupal-7
Drupal template engine design an specific file name for override front page.
You can create the file html--front.tpl.php, and this will be used only for the front page without touch any other page. You can page here your custom HTML and reference css/js.
If the page you need share common styles with the rest of the site, I would recommend to instead override page--front.tpl.php which is basically the content of the page without the tags
For more information here is a link https://www.drupal.org/docs/7/theming/howto/customize-the-front-page-template

Sitefinity cms related media link to document using custom field, not loading document path url

I am a beginner for sitefinity, so sorry for long post, not sure if its already answered, couldn't find out.
As working on sitefinity-8, looking for best option to select separate css while creating page each time.
I know, I can use different theme for different css, which will not work in my case, as we are having long list of css to use in whole site. Also I know, I can add css or any link into the head tag option of page properties or I can add css widget on the page itself to select css for that page only, but our requirement is to select css file while creating the page itself, this will make easy for novice editors too.
Basic thing I tried, to add css script tag into template, made it editable on page. So I can select css, but it exposes server folders, which is not ideal. Wish is there any way so that we can configure to select folder from sitefinity content- Documents & Files. But didn't find out a way to do so.
Other thing I tries, I have created custom field (related media-images, videos, files) for page to select a document & use as a link to add into head tag (to say link to add css for page.) With this custom field I can select needed document from appropriate folder from sitefinity backend itself, not from server. When I am looking into page source, I could see the link tag is there, but href attribute is empty. I also tried with adding related media tag into template the page is using, but the issue is same, no any value in href attribute.
Struggling to resolve this since long time, seeking for expert's advice.Thanks in advance.
The custom field path you've chosen should work - you will need a custom widget on the Page Template that will read the value of the custom field.
The GetRelatedItems extension method of the page node should give you the document object that was selected.
Having the document the widget will have to inject a link in the head of the page with the proper css attributes.

Site Does Not Reflect Edits Inside Wordpress CMS

Anything I do inside our Wordpress CMS for some of our pages does not reflect on the actual website. It's like as if it's disconnected. The other pages are confirmed connected though.
Why is this and where should I look especially that it happens only to selected pages?
Btw, I probably should've indicated a sample of the problematic pages. Here's one: http://www.criminal-lawyers.com.au/courts/locations.
Look the template of effected pages.
Take that page on admin panel on the right side of that page you can see page attribute section ,Look on the template that set for that page. It may be a static template that do not accept the content.
Just change the template to default template.
Then view that page .If content are reflected then request the developer to do that in the selected template also.
(NOTICE:entire style of the page is lost.You need to reselect to previous template and save it after seeing the change )

How to make a sitefinity master page without ASP.NET?

The company I am working for has a sitefinity. They want me to create custom pages from scratch for them. I have never used sitefinity, so upon research It appears that I want to create a template via .master. Then once built, I would add to my CMS and access it for use.
Is there a way to make these .master templates other than ASP.NET? ( which I have no experience with)
Essentially all am am wanting to do is create a custom page out of html,css, and jquery and then make a 'template' out of it.
You dont have to use a .master page to create a template in Sitefinity. It's nice to have that level of control but it's not necessary at all. Just go to Design > Page Templates in the Sitefinity backend section /Sitefinity
There are several built in templates you can edit from that page. You can use one of those templates, create a new template from scratch, or create a template based on any one of the templates you see there.
Once you pick a template, you can edit the Layout to add columns and global content or custom CSS.
Not really, if you want control over the markup then you'll have to use a .master page but the good news is that it really is just mostly html and css / js references. Sitefinity has a sample template here but you may want to look at their Visual Studio plugin called Thunder to register a template. It will add in a default master page as well as the default folder structure for the theme, video on that here.

how to display a document in my aspx page

My apsx page basically displays the product description.
A user designs his own classified add and the description is displayed on an aspx page as he has designed it. To make the description more elaborate and instead of designing more components I thought that user should design an additional file (catalog of his product) and upload that at the time of designing the advert.
Now what format of file should I allow the user to create a catalog and how to show the file in the same description page? Can I use update panel? iframe?
You can ask the user to upload PDF file and use iframe to show it.
Basic example
PDF is very popular these days and most people have reader installed including plugins for their browser.
Edit: also possible to ask them for either PDF or Word file (.doc) and in case of Word document convert it to PDF on the fly.

Resources