Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with URL when create new "Document Types" and Models #10

Open
gregoriii opened this issue Oct 10, 2016 · 1 comment
Open

Problem with URL when create new "Document Types" and Models #10

gregoriii opened this issue Oct 10, 2016 · 1 comment

Comments

@gregoriii
Copy link

Hi,
I have problem with URL when create new "Document Types". What I need to do to improve?

In web.confing ( \24days\web.config )
connection to the database has been changed (connectionStrings):
from
<add name="umbracoDbDSN" connectionString="Data Source=|DataDirectory|\Umbraco.sdf;Flush Interval=1;" providerName="System.Data.SqlServerCe.4.0" />

to
<add name="umbracoDbDSN" connectionString="server=xxx;database=xxx;user id=xxx;password='xxx'" providerName="System.Data.SqlClient" />

Create New Document Types
Settings > Document Types > Create New Document Types > name: NewDocType value:umbNewDocType

Create content
Content > Home > CREATE AN ITEM UNDER HOME "NewDocType" > (name) NameNewDocType > Save and Publish

  • in section Url: "Url Preview" I have empty link "#"
  • in section Content: "Link to document" I have "Oops: this document is published but is not in the cache (internal error - see log)"
1:54:20 PM  INFO umbraco.content : Saved Xml to file.
1:54:20 PM  INFO umbraco.content : Save Xml to file...
1:54:16 PM  INFO Umbraco.Core.Publishing.PublishingStrategy : Content 'DocTypeTest03' with Id '1128' has been published.
1:54:04 PM  INFO umbraco.content : Saved Xml to file.
1:54:04 PM  INFO umbraco.content : Save Xml to file...
1:54:00 PM  INFO Umbraco.Core.Publishing.PublishingStrategy : Content 'DocTypeTest03' with Id '0' has been published.
1:53:54 PM  INFO umbraco.content : Save Xml to file...
1:53:54 PM  INFO umbraco.content : Saved Xml to file.
1:53:49 PM  INFO Umbraco.Core.Publishing.PublishingStrategy : Content 'DocTypeTest02' with Id '1127' has been unpublished.

How it should create models (using Models Builder)?
How it should look to create models (using Models Builder)? I added the entry in the web.config add "<add key="Umbraco.ModelsBuilder.ModelsMode" value="LiveAppData" />". Model is created in my directory "\24days\App_Data\Models" but not in "\Umbraco.Extensions\Models"

Can I ask for help me in solving the problem. Best regards, Gregoriii

@jbreuer
Copy link
Owner

jbreuer commented Oct 10, 2016

You can fix these problems by running the models builder. It's using the API models. More info here: https://github.com/zpqrtbnk/Zbu.ModelsBuilder/wiki/Builder-Modes#api-models

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants