https://discord.umbraco.com
Join Discord
Pagination with Umbraco
p

PascalEugster

about 2 years ago
Hey everyone, my question today is about pagination. I wondered what the best way would be to create one. The situation is as following: I have a topic Page with many articles. I've built a viewcomponent to display these articles and load the data from the articleController. Now my question is. Where would you integrate the pagination. Would you take the pagination inside of the ViewComponent or Outside of it so it calls the VC with the Values. I'm not sure what would be the best way to communicate between pagination click and controller / VC.
p
s
+5
  • 7
  • 23
  • 81
change umbraco backoffice path in v13
b

Bishal Tim

over 1 year ago
I am trying to change the backoffice path ('/umbraco/...') so i can accesse Umbraco using a different path like "mysite/something"
b
r
  • 2
  • 2
  • 80
Clean URLs in Umbraco 13
t

TigerMan

over 1 year ago
Hi In previous versions of Umbraco I used to use the UrlRewriting file to get an URL which was built like /GetCustomer?id=2®ion=1 This was cleaned up to look like /GetCustomer/2/1/John What would be the correct way to do this in Umbraco 13? Thank you
t
a
+2
  • 4
  • 15
  • 80
Oauth1 libraries for .net core 8, Do they exist?
t

Tom Chance

over 1 year ago
Hey all! Been asked to scope out connecting a site to an API that uses OAuth1 (One legged) authentication headers. However, trying out a few of the old "tried and tested" packages from days of old has shown that most arent actually up to scratch for .net core 8, typically old dependencies or vaulted repos that cant be accessed anymore. Anyone know of any nice Oauth1 packages out there to simplify the process? Dont really fancy creating my own serialization / deserialization handler for it, but if I must, I must 😅
t
a
  • 2
  • 4
  • 80
Debugging ApiController requests with System.Text.Json serialization.
k

Kevin Jump

over 1 year ago
Anyone got any tips/ideas for the best way to debug how asp.net deserializes objects when using a ApiController ? my google fu is failing me for this one 😦 I have an object, that i can serialize to json, and in code (using the System.Text.Json serializer) happily deserialize back from that json string - but when i call an ApiController with the json the API controller just gives me back an empty version of the object 😞 I have seen this before and done trial and error to eventually workout what was failing, but this object isn't small, and i would rather get some form of error back from .net when it happens. so just wondering if anyone has any clues
k
i
  • 2
  • 2
  • 80
[SOLVED] Create rich text block (tiptap) programmatically?
g

gonziii

9 months ago
Has anyone succeed in creating a block that is allowed on the tiptap text editor, programmatically?
g
l
j
  • 3
  • 8
  • 79
Expand nested properties in Content Delivery API for unknown structure
k

Khattab

about 1 year ago
Hello, we are using Umbraco 13 for building a Headless site against NextJs , for the pages, we defined a couple of page placeholders “Block List” properties that hosts the page components, within those components there are some components that play as layout components - container, row col splits.. etc, so those components have their own block list fields. As we are using Content Delivery API V2 To get those block list fields we use
expand=properties[$all[properties[$all]]
, but this expand fields for two levels, so we added and extra level to support blocks on third level, but this approach is not maintainable as we cannot predict all the scenarios and the block list fields could be presented in any level, Using V1
expand= all
works fine as it expands all props all the way. So is there a way to get this to work dynamically, for example a configuration to define couple of field aliases to expand by default or something like that. Thanks!
k
r
j
  • 3
  • 3
  • 79
[Solved] Where to put a JSON file for processing?
c

Craig100

over 1 year ago
V13.2.2 I have a data import facility on an Umbraco site that, locally, takes a json file in the root of the project folder (i.e. Web/) and processes it. Now that the project has been deployed, the file structure is totally different and the file doesn't get hit at all. It's ended up in the root of the website files along with all the DLLs. My question is, where can I put it on the server (shared hosting), so it's not publicly accessible but can be hit. Here's the code that works locally:-
var jsonData = System.IO.File.ReadAllText("myfile.json");
Nice and simple and just works. Is there an equivalent in the deployed scenario? Thanks.
c
a
  • 2
  • 3
  • 79
Headless Umbraco - Crop Zoom
s

Sebastian Pierre

about 1 year ago
Is it possible to get the crop zoom when fetching images in a headless app (SvelteKit) from umbraco (v13)? Check the images for: 1. My crop settings 2. What the result looks like on the page 3. The helper that generates the rxy from the coordinates. So to summarize it looks like the x and y might be fine, but the zoom does not seem to tag along, or am I missing something here or am I doing it wrong? https://cdn.discordapp.com/attachments/1288857518520533076/1288857519200141355/image.png?ex=66f6b59a&is=66f5641a&hm=bc74561a53cad69695b0213df579259509a3352d1e872ce1cfb98fae242d5dcb& https://cdn.discordapp.com/attachments/1288857518520533076/1288857519921303612/image.png?ex=66f6b59a&is=66f5641a&hm=cd4f63c428142e584f7a57d69e68f949d627356526691b0e2448025e8ff1dec2& https://cdn.discordapp.com/attachments/1288857518520533076/1288857520219230359/image.png?ex=66f6b59a&is=66f5641a&hm=37bc40f46a229fe35872642cc28fbb8d5805cc639a0939fa60206f81d155d432&
s
k
b
  • 3
  • 6
  • 78
[Solved] Style block custom view based on area
b

Bjarne Fyrstenborg

over 1 year ago
In custom view of block grid item in backoffice, we can access
colSpan
and
rowSpan
. Furthermore we can style based on parent context by setting and attribute or class on layout block and update CSS variables as mentioned here. https://umbraco.com/blog/deep-dive-block-grid-editor-part-3/ However if I have two columns - left area which span 6 columns and right area which span 6 columns, is there any way to know area context inside the block? I would like to align content in block when in left area and "flip" the block content when placed in right area.
b
c
+2
  • 4
  • 7
  • 78
Previous303132Next

Umbraco

A hub and casual space for you to interact with fellow community members and learn more about Umbraco!

Powered by