Publish deleted items - c#

I'm facing some problems, somehow to provide to content authors solution/advice to delete huge sections of website translated (having language versions) and with references set on presentation or data items inside content tree.
Removing all items plus references raise another problem how to make the changes visible on web database. Publish cannot be used, even workflow is present changes are made on presentation (master instance is mapped to a preview site for client) on pages (by different agencies) and cannot reach live, only when they decide to. Used as well number of versions per language (limited to 6, rest removed) if all 6 variants are trapped in workflow publish will publish item with all fields empty, we don't want to have a blank page.
And there are other concerns regards incorrect work, sometimes agencies publish/submit incorrect/unproved content and they blame each other case someone publish accidental pages (presentation settings/datasource) so i want to pick the best strategy here not to give room for content authoring agency's to blame their incorrect work other then them.
I have few approaches to do it right but..
do same deletion of items on web database via CMS in theory works (tested on locally in sitecore 7.2 - works) on Production CMS (Sitecore 7.0 - admin rights, no access to server files for me) fails as in next image:
write a module (Sitecore command to remove all references and removing/recycling web database item cannot be performed via code because it will trow same error as above)
Question 1. Why this error occurs at CMS item deletion if web database is selected (Sitecore 7.0)
Found in this deprecated post something what seems to be the solution: Add publishing commands to the recycle bin. Well here I get a bit blocked, adding the publish command on Recycle Bin ribbons, don't know if it's possible to do this (what I'm publishing I do not understand). I created something but it's not working:
This is the result :(
Question 2. Is publishing commands to the recycle bin possible? If yes please help me with a documentation to implement it and understated what/how is published.
If you have other suggestions (beside publish item + sub items or publish website) please help me out.
Thank You.

Related

Umbraco index says data is one thing, but umbracoHelper methods return another thing

My index states that some documents have a sort order as expected, but when pulling data out of the database using:
umbracoHelper.TypedContentAtRoot(), the sort order is incorrect.
It's like something hasn't updated correctly when publishing the sort order?
I did somehow manage to budge it the other day but i do not know what made it happen.
Any ideas why this is?
Edit:
I have noticed that locally it seems to respect the sort order correctly but on the Azure server i'm hosting the web app on, the order is wrong.
Edit:
The umbraco.config on the server is not being updated for some reason?
I had to right click on "Content" and Republish entire site. Publishing my own custom content again did not re-build the umbraco.config

Pulling changes made in Umbraco back office to local host

So I'm tinkering with using Umbraco as a CMS for an MVC application. Of course, I run the site locally and publish to a server and use Umbraco for managing things like hero images, carousel text, and a few basic dynamic elements that are stored in Umbraco.
However, one can also modify the actual template .cshtml files as well through the Umbraco back office. The problem with that is that those changes won't be reflected locally, and any changes made in the Umbraco back office would get overwritten on the next publish.
Is there any way to 'pull' the changes made in Umbraco (without having to FTP in and download the entire site), or even better integrate it with git directly?
If I understood you correctly, Umbraco uSync package might help you:
https://our.umbraco.org/projects/developer-tools/usync/
It exports the changes in "uSync" folder locally - you can do this automatically or manually, and then you transfer those files on the server, and do import within Umbraco Dev section.
Yes use uSync for this but you should probably decide whether you edit your template files locally or on the server. Generally you would probably keep editing template files, CSS, js, locally and upload changes to your live site. However, if you are adding content, setting up a template for the first time, changing doc types, adding data types etc, these are all database changes so either; share the database on the server between your local and Server versions of the site; or use a tool like Courier or USync to replicate your changes between environments.

Team Foundation Server - Files don't show in Source Control Explorer

I am currently doing a school project with two other members. We're using Team Foundation Server with Visual Studio to share the project and for collaboration.
I've added the project to Source Control (File > Add to Source Control > Choosing Team Foundation Version Control > Choosing Team Project Location) and checked in all changes.
Funny thing is, while my groupmates are able to connect to the server and configure workspace mappings, Source Control Explorer is empty for them. Mine, however, shows the appropriate files and folders (see image below)
Source Control Explorer on my side. On my groupmates' machines, Source Control Explorer is empty. All it shows is "beitrik.visualstudio.com\DefaultCollection" under the "Folders" section.
Is there any way I could solve this? Right-clicking "beitrik.visualstudio.com\DefaultCollection" and selecting Get Latest Version does not work either, since the resulting message will be that "All files are up to date".
Thank you!
Just as Daniel Mann mentioned, the other two member are working as a stakeholder that cannot contribute to Code.
As a stakeholder, you can:
View, add, and modify items on the backlog
View, create, and modify work items such as stories, features, and bugs
View, create, and save queries
View team dashboards and portfolio backlogs
Create and receive alerts when changes are made to work items
Submit, view, and change your feedback responses.
You can have 5 free users with Basic Access which can contribute to Code. Configure it via following steps:
Open your VSTS account from Web Portal.
Select "Users" panel.
You can add or edit the users on this tab, change the access level to "Basic" will give the access to Code.
Refer to this link for more details: Manage users and their access levels in your Visual Studio Team Services account
You have your other contributors at the Stakeholder access level. Stakeholders cannot contribute code; it's a level of permissions intended for people who will be contributing requirements and monitoring project progress, but not actively contributing code. Stakeholders do not require any licensing, which is the big draw.
However, you get up to 5 users (including yourself) for free, so you can add them to the Basic level so they can contribute code. You can do that by going to the "Users" tab from the root of your project (e.g. http://youraccount.visualstudio.com).

How to allow designer to edit master page in ASP.NET Web Application Project?

Currently the webmaster can go into IIS and edit files by using Dreamweaver. The problem came when developers deployed a Web Application Project and the webmaster changed the master page to update the design, but then when developers deployed updates to the WAP it overwrote the master page back to the way it was.
So my question is, what is the best way to let the webmaster/designer edit the master page design in an ASP.NET WAP and keep project files in sync with developer projects?
Currently the webmaster can go into IIS and edit files by using
Dreamweaver
That means webmaster is actually editing the production copy of files. Don't do that. Why would you allow production copy to be modified. Rather, as already suggested by #BenRobinson; have webmaster make changes to the version already present in TFS (considering the face that, production branch is different in TFS than main code branching).
That way, once it's been approved that the modified changes are per requirement then you can copy the changes to production branch and do a full deployment along with other code changes.

Button url caching Dynamics CRM 4 issue

I have added a custom button, with url + javascript by chaning the isv xml file, as described on
http://msdn.microsoft.com/en-us/library/cc150860.aspx
and all works fine. However, when I try and replace the file in the /ISV/ folder, it behaves the same as the original copy, I assume this is caching related. However, if I access the file from outside the CRM that is http://server/ISV/file.htm it has the latest and correct version. How do I get around this caching issue.
Thanks
So your ISV Option points to "/ISV/file.htm"? I think in the past I've noticed CRM's IIS site caching static files for 3 days. What I would do is when you replace your file.htm in your ISV folder, also update the ISV.config:
So change it to point to "/ISV/file.htm?vers=00001" and then increment each time you update the file.

Categories

Resources